cap_gst: inspect sink instead of videoconvert to find out properties

videoconvert might not be present on a manual pipeline, but appsink must
be.
This commit is contained in:
Pavel Rojtberg 2016-03-23 16:24:10 +01:00
parent e792ee89de
commit 9dc14b3efc

View 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