From 9dc14b3efc9f00c4d11e53d8b6182bdf2fad01f0 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Wed, 23 Mar 2016 16:24:10 +0100 Subject: [PATCH] cap_gst: inspect sink instead of videoconvert to find out properties videoconvert might not be present on a manual pipeline, but appsink must be. --- modules/videoio/src/cap_gstreamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_gstreamer.cpp b/modules/videoio/src/cap_gstreamer.cpp index 7c2852963a..2729137de0 100644 --- a/modules/videoio/src/cap_gstreamer.cpp +++ b/modules/videoio/src/cap_gstreamer.cpp @@ -847,7 +847,7 @@ bool CvCapture_GStreamer::open( int type, const char* filename ) duration = -1; } - GstPad* pad = gst_element_get_static_pad(color, "src"); + GstPad* pad = gst_element_get_static_pad(sink, "sink"); #if GST_VERSION_MAJOR == 0 GstCaps* buffer_caps = gst_pad_get_caps(pad); #else