mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
transcoding: Fix the way we get pad caps
This commit is contained in:
parent
56f28f7aad
commit
75d7450e19
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue