summaryrefslogtreecommitdiff
path: root/libs/gst/base
diff options
context:
space:
mode:
authorSeungha Yang <sh.yang@lge.com>2016-08-12 08:03:41 +0900
committerTim-Philipp Müller <tim@centricular.com>2016-11-11 13:07:51 +0000
commit562681a1b784b08c37354e2832d87451b03209ba (patch)
treedc664d0c6ca9d5fcb3490f51625f53b7ada08761 /libs/gst/base
parent4eb64cd2764d4624fcc2c6c6067d6b67361a773f (diff)
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
Diffstat (limited to 'libs/gst/base')
-rw-r--r--libs/gst/base/gstbasesrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c
index 37719f43f..7a3e211f9 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);