projects
/
rtmpclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stream pushing ok without access permission of /dev/video0
[rtmpclient.git]
/
app
/
src
/
main
/
jni
/
libuvc-0.0.6
/
src
/
diag.c
diff --git
a/app/src/main/jni/libuvc-0.0.6/src/diag.c
b/app/src/main/jni/libuvc-0.0.6/src/diag.c
index
fa17731
..
2b5f028
100644
(file)
--- a/
app/src/main/jni/libuvc-0.0.6/src/diag.c
+++ b/
app/src/main/jni/libuvc-0.0.6/src/diag.c
@@
-76,7
+76,11
@@
void uvc_perror(uvc_error_t err, const char *msg) {
fputs(": ", stderr);
}
fputs(": ", stderr);
}
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_ERROR, "UVC", "%s (%d)\n", uvc_strerror(err), err);
+#else
fprintf(stderr, "%s (%d)\n", uvc_strerror(err), err);
fprintf(stderr, "%s (%d)\n", uvc_strerror(err), err);
+#endif
}
/** @brief Return a string explaining an error in the UVC driver
}
/** @brief Return a string explaining an error in the UVC driver