mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
jpegenc: sink pad's getcaps shouldn't use the src pad getcaps
Instead of using get_allowed_caps on the srcpad, the sinkpad getcaps should use the getcaps of the srcpad's peer. This way the srcpad can keep using fixed_caps and sinkpad getcaps exposes all caps that can be negotiated https://bugzilla.gnome.org/show_bug.cgi?id=637686
This commit is contained in:
parent
f4155f3cf3
commit
dcbba0932d
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ gst_jpegenc_getcaps (GstPad * pad)
|
|||
/* we want to proxy properties like width, height and framerate from the
|
||||
other end of the element */
|
||||
|
||||
othercaps = gst_pad_get_allowed_caps (jpegenc->srcpad);
|
||||
othercaps = gst_pad_peer_get_caps_reffed (jpegenc->srcpad);
|
||||
if (othercaps == NULL ||
|
||||
gst_caps_is_empty (othercaps) || gst_caps_is_any (othercaps)) {
|
||||
caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
|
||||
|
|
Loading…
Reference in a new issue