mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 06:53:50 +08:00
Merge pull request #20796 from JonasVautherin:patch-1
This commit is contained in:
commit
7358fffb0f
@ -216,10 +216,10 @@ private:
|
||||
call_deinit = utils::getConfigurationParameterBool("OPENCV_VIDEOIO_GSTREAMER_CALL_DEINIT", false);
|
||||
|
||||
GSafePtr<GError> err;
|
||||
gst_init_check(NULL, NULL, err.getRef());
|
||||
if (err)
|
||||
gboolean gst_init_res = gst_init_check(NULL, NULL, err.getRef());
|
||||
if (!gst_init_res)
|
||||
{
|
||||
CV_WARN("Can't initialize GStreamer: " << err->message);
|
||||
CV_WARN("Can't initialize GStreamer: " << (err ? err->message : "<unknown reason>"));
|
||||
isFailed = true;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user