videoio: fix camera opening with GStreamer plugin

This commit is contained in:
Maksim Shabunin 2023-08-10 11:39:29 +03:00
parent f834736307
commit 53dfd9536a

View File

@ -2825,8 +2825,6 @@ CvResult CV_API_CALL cv_capture_open_with_params(
if (!handle)
return CV_ERROR_FAIL;
*handle = NULL;
if (!filename)
return CV_ERROR_FAIL;
GStreamerCapture *cap = 0;
try
{