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
This commit is contained in:
Seungha Yang 2016-08-12 08:03:41 +09:00 committed by Tim-Philipp Müller
parent 4eb64cd276
commit 562681a1b7

View file

@ -1865,7 +1865,8 @@ gst_base_src_send_event (GstElement * element, GstEvent * event)
case GST_EVENT_TAG: case GST_EVENT_TAG:
case GST_EVENT_CUSTOM_DOWNSTREAM: case GST_EVENT_CUSTOM_DOWNSTREAM:
case GST_EVENT_CUSTOM_BOTH: 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); GST_OBJECT_LOCK (src);
src->priv->pending_events = src->priv->pending_events =
g_list_append (src->priv->pending_events, event); g_list_append (src->priv->pending_events, event);