collectpads2: Drop the stream-start and stream-config events by default

This commit is contained in:
Sebastian Dröge 2012-01-27 10:46:02 +01:00
parent f5545e3323
commit 34b01da26c
2 changed files with 4 additions and 1 deletions

View file

@ -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 */

View file

@ -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
*