mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
collectpads2: Drop the stream-start and stream-config events by default
This commit is contained in:
parent
f5545e3323
commit
34b01da26c
2 changed files with 4 additions and 1 deletions
|
@ -1743,6 +1743,8 @@ gst_collect_pads2_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
goto forward_or_eat;
|
||||
}
|
||||
case GST_EVENT_CAPS:
|
||||
case GST_EVENT_STREAM_START:
|
||||
case GST_EVENT_STREAM_CONFIG:
|
||||
goto forward_or_eat;
|
||||
default:
|
||||
/* forward other events */
|
||||
|
|
|
@ -210,7 +210,8 @@ typedef gint (*GstCollectPads2CompareFunction) (GstCollectPads2 *pads,
|
|||
* ownership of the event and is responsible for forwarding
|
||||
* events downstream (with gst_pad_event_default()) or dropping events.
|
||||
*
|
||||
* The SEGMENT, CAPS and EOS events should usually be dropped by this function.
|
||||
* The STREAM_START, CAPS, STREAM_CONFIG, SEGMENT and EOS events should
|
||||
* usually be dropped by this function.
|
||||
*
|
||||
* Returns: %TRUE if the pad could handle the event
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue