From 53dfd9536a569b824cb083a1d6f5f9f3df0b05be Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Thu, 10 Aug 2023 11:39:29 +0300 Subject: [PATCH] videoio: fix camera opening with GStreamer plugin --- modules/videoio/src/cap_gstreamer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/videoio/src/cap_gstreamer.cpp b/modules/videoio/src/cap_gstreamer.cpp index fc031d2b5f..305d527ce9 100644 --- a/modules/videoio/src/cap_gstreamer.cpp +++ b/modules/videoio/src/cap_gstreamer.cpp @@ -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 {