projects
/
rtmpclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
print jni log to log file
[rtmpclient.git]
/
app
/
src
/
main
/
jni
/
ai_suanzi_rtmpclient_UVCCamera.cpp
diff --git
a/app/src/main/jni/ai_suanzi_rtmpclient_UVCCamera.cpp
b/app/src/main/jni/ai_suanzi_rtmpclient_UVCCamera.cpp
index
1364627
..
4ef69ae
100644
(file)
--- a/
app/src/main/jni/ai_suanzi_rtmpclient_UVCCamera.cpp
+++ b/
app/src/main/jni/ai_suanzi_rtmpclient_UVCCamera.cpp
@@
-16,9
+16,12
@@
-JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_UVCCamera_open(JNIEnv *
env, jobject ob
)
+JNIEXPORT jint JNICALL Java_ai_suanzi_rtmpclient_UVCCamera_open(JNIEnv *
env, jobject ob, jint vid, jint pid, jint fd, jint busnum, jint devaddr, jstring usbFsName
)
{
{
- return UVCCamera::open();
+ const char* usbfs = env->GetStringUTFChars(usbFsName, 0);
+ jint ret = UVCCamera::open(vid, pid, fd, busnum, devaddr, usbfs);
+ env->ReleaseStringUTFChars(usbFsName, usbfs);
+ return ret;
}
}