From 562681a1b784b08c37354e2832d87451b03209ba Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 12 Aug 2016 08:03:41 +0900 Subject: [PATCH] basesrc: Support PROTECTION event from application Application may want to send PROTECTION event to the src element. https://bugzilla.gnome.org/show_bug.cgi?id=769775 --- libs/gst/base/gstbasesrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 37719f4..7a3e211 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -1865,7 +1865,8 @@ gst_base_src_send_event (GstElement * element, GstEvent * event) case GST_EVENT_TAG: case GST_EVENT_CUSTOM_DOWNSTREAM: case GST_EVENT_CUSTOM_BOTH: - /* Insert TAG, CUSTOM_DOWNSTREAM, CUSTOM_BOTH in the dataflow */ + case GST_EVENT_PROTECTION: + /* Insert TAG, CUSTOM_DOWNSTREAM, CUSTOM_BOTH, PROTECTION in the dataflow */ GST_OBJECT_LOCK (src); src->priv->pending_events = g_list_append (src->priv->pending_events, event); -- 2.7.4