transcoding: Fix the way we get pad caps
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 7 Oct 2013 15:07:47 +0000 (12:07 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 7 Oct 2013 18:57:29 +0000 (15:57 -0300)
validate/tools/gst-validate-transcoding.c

index 1fdf901..73613c8 100644 (file)
@@ -148,7 +148,7 @@ pad_added_cb (GstElement * uridecodebin, GstPad * pad, GstElement * encodebin)
   GstCaps *caps;
   GstPad *sinkpad = NULL;
 
-  caps = gst_pad_get_current_caps (pad);
+  caps = gst_pad_query_caps (pad, NULL);
 
   /* Ask encodebin for a compatible pad */
   GST_DEBUG_OBJECT (uridecodebin, "Pad added, caps: %" GST_PTR_FORMAT, caps);