cap_gst: inspect sink instead of videoconvert to find out properties
authorPavel Rojtberg <pavel.rojtberg@igd.fraunhofer.de>
Wed, 23 Mar 2016 15:24:10 +0000 (16:24 +0100)
committerPavel Rojtberg <pavel.rojtberg@igd.fraunhofer.de>
Wed, 23 Mar 2016 15:24:10 +0000 (16:24 +0100)
videoconvert might not be present on a manual pipeline, but appsink must
be.

modules/videoio/src/cap_gstreamer.cpp

index 7c28529..2729137 100644 (file)
@@ -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