collectpads2: Drop the stream-start and stream-config events by default
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 Jan 2012 09:46:02 +0000 (10:46 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 Jan 2012 09:46:02 +0000 (10:46 +0100)
libs/gst/base/gstcollectpads2.c
libs/gst/base/gstcollectpads2.h

index 94066a6..b2357d3 100644 (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 */
index 630c59d..3a8c6a9 100644 (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
  *