mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 20:25:25 +00:00
collectpads2: Don't forward CAPS event automatically
This commit is contained in:
parent
6b9280b18c
commit
de576f8163
2 changed files with 3 additions and 1 deletions
|
@ -1742,6 +1742,8 @@ gst_collect_pads2_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
* accumulated and this is certainly not what we want. */
|
* accumulated and this is certainly not what we want. */
|
||||||
goto forward_or_eat;
|
goto forward_or_eat;
|
||||||
}
|
}
|
||||||
|
case GST_EVENT_CAPS:
|
||||||
|
goto forward_or_eat;
|
||||||
default:
|
default:
|
||||||
/* forward other events */
|
/* forward other events */
|
||||||
goto forward_or_default;
|
goto forward_or_default;
|
||||||
|
|
|
@ -210,7 +210,7 @@ typedef gint (*GstCollectPads2CompareFunction) (GstCollectPads2 *pads,
|
||||||
* ownership of the event and is responsible for forwarding
|
* ownership of the event and is responsible for forwarding
|
||||||
* events downstream (with gst_pad_event_default()) or dropping events.
|
* events downstream (with gst_pad_event_default()) or dropping events.
|
||||||
*
|
*
|
||||||
* The SEGMENT and EOS events should usually be dropped by this function.
|
* The SEGMENT, CAPS and EOS events should usually be dropped by this function.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if the pad could handle the event
|
* Returns: %TRUE if the pad could handle the event
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue