From 34b01da26cfe2633d37020eb73006fafabb22096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 27 Jan 2012 10:46:02 +0100 Subject: [PATCH] collectpads2: Drop the stream-start and stream-config events by default --- libs/gst/base/gstcollectpads2.c | 2 ++ libs/gst/base/gstcollectpads2.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstcollectpads2.c b/libs/gst/base/gstcollectpads2.c index 94066a69e2..b2357d3e3f 100644 --- a/libs/gst/base/gstcollectpads2.c +++ b/libs/gst/base/gstcollectpads2.c @@ -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 */ diff --git a/libs/gst/base/gstcollectpads2.h b/libs/gst/base/gstcollectpads2.h index 630c59d1f5..3a8c6a909d 100644 --- a/libs/gst/base/gstcollectpads2.h +++ b/libs/gst/base/gstcollectpads2.h @@ -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 *