Commit adc1dd27 authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #1301 from asmorkalov:java_video_capture_fix

parents abf372d7 e37f7a4c
...@@ -544,7 +544,7 @@ JNIEXPORT jstring JNICALL Java_org_opencv_highgui_VideoCapture_getSupportedPrevi ...@@ -544,7 +544,7 @@ JNIEXPORT jstring JNICALL Java_org_opencv_highgui_VideoCapture_getSupportedPrevi
{ {
static const char method_name[] = "highgui::VideoCapture_getSupportedPreviewSizes_10()"; static const char method_name[] = "highgui::VideoCapture_getSupportedPreviewSizes_10()";
try { try {
LOGD(%s, method_name); LOGD("%s", method_name);
VideoCapture* me = (VideoCapture*) self; //TODO: check for NULL VideoCapture* me = (VideoCapture*) self; //TODO: check for NULL
union {double prop; const char* name;} u; union {double prop; const char* name;} u;
u.prop = me->get(CV_CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING); u.prop = me->get(CV_CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment