From: Seungha Yang Date: Thu, 11 Aug 2016 23:03:41 +0000 (+0900) Subject: basesrc: Support PROTECTION event from application X-Git-Tag: 1.12.0~254 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=562681a1b784b08c37354e2832d87451b03209ba;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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);