transcoding: Fix the way we get pad caps

This commit is contained in:
Thibault Saunier 2013-10-07 12:07:47 -03:00
parent 56f28f7aad
commit 75d7450e19

View 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);