collectpads2: Don't forward CAPS event automatically

This commit is contained in:
Sebastian Dröge 2012-01-26 10:30:25 +01:00
parent 6b9280b18c
commit de576f8163
2 changed files with 3 additions and 1 deletions

View file

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

View file

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