mirror of
https://github.com/opencv/opencv.git
synced 2024-12-12 15:19:11 +08:00
Merge pull request #14874 from alalek:videoio_fix_gstreamer_plugin_build
This commit is contained in:
commit
f4ca2c8e72
@ -1769,7 +1769,7 @@ CvResult CV_API_CALL cv_capture_open(const char* filename, int camera_index, CV_
|
|||||||
cap = new GStreamerCapture();
|
cap = new GStreamerCapture();
|
||||||
bool res;
|
bool res;
|
||||||
if (filename)
|
if (filename)
|
||||||
res = cap->open(string(filename));
|
res = cap->open(std::string(filename));
|
||||||
else
|
else
|
||||||
res = cap->open(camera_index);
|
res = cap->open(camera_index);
|
||||||
if (res)
|
if (res)
|
||||||
|
Loading…
Reference in New Issue
Block a user