From de576f8163b69810393c2f0bfda6b6f2558e7141 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 26 Jan 2012 10:30:25 +0100 Subject: [PATCH] collectpads2: Don't forward CAPS event automatically --- libs/gst/base/gstcollectpads2.c | 2 ++ libs/gst/base/gstcollectpads2.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstcollectpads2.c b/libs/gst/base/gstcollectpads2.c index df3203c..94066a6 100644 --- a/libs/gst/base/gstcollectpads2.c +++ b/libs/gst/base/gstcollectpads2.c @@ -1742,6 +1742,8 @@ gst_collect_pads2_event (GstPad * pad, GstObject * parent, GstEvent * event) * accumulated and this is certainly not what we want. */ goto forward_or_eat; } + case GST_EVENT_CAPS: + goto forward_or_eat; default: /* forward other events */ goto forward_or_default; diff --git a/libs/gst/base/gstcollectpads2.h b/libs/gst/base/gstcollectpads2.h index 64ae4ea..630c59d 100644 --- a/libs/gst/base/gstcollectpads2.h +++ b/libs/gst/base/gstcollectpads2.h @@ -210,7 +210,7 @@ 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 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 * -- 2.7.4