mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
capsfilter: Only set caps on the srcpad if it's activated in push mode
https://bugzilla.gnome.org/show_bug.cgi?id=722289
This commit is contained in:
parent
ffe072f694
commit
210b0629fc
1 changed files with 2 additions and 1 deletions
|
@ -293,7 +293,8 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
|
|||
/* always return the input as output buffer */
|
||||
*buf = input;
|
||||
|
||||
if (!gst_pad_has_current_caps (trans->sinkpad)) {
|
||||
if (GST_PAD_MODE (trans->srcpad) == GST_PAD_MODE_PUSH
|
||||
&& !gst_pad_has_current_caps (trans->sinkpad)) {
|
||||
/* No caps. See if the output pad only supports fixed caps */
|
||||
GstCapsFilter *filter = GST_CAPSFILTER (trans);
|
||||
GstCaps *out_caps;
|
||||
|
|
Loading…
Reference in a new issue