stream pushing ok without access permission of /dev/video0
[rtmpclient.git] / app / src / main / jni / libuvc-0.0.6 / src / diag.c
index fa17731..2b5f028 100644 (file)
@@ -76,7 +76,11 @@ void uvc_perror(uvc_error_t err, const char *msg) {
     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);
+#endif
 }
 
 /** @brief Return a string explaining an error in the UVC driver