Merge pull request #20796 from JonasVautherin:patch-1

This commit is contained in:
Alexander Alekhin 2021-10-02 17:48:23 +00:00
commit 7358fffb0f

View File

@ -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;
}