rtpgstpay: Add etype=4 for payloading GST_EVENT_STREAM_START

This commit is contained in:
Youness Alaoui 2013-07-25 17:56:38 -04:00 committed by Wim Taymans
parent 6155b27971
commit 0070ba76f2
2 changed files with 7 additions and 0 deletions

View file

@ -277,6 +277,9 @@ read_event (GstRtpGSTDepay * rtpgstdepay, guint type,
case 3:
etype = GST_EVENT_CUSTOM_BOTH;
break;
case 4:
etype = GST_EVENT_STREAM_START;
break;
default:
goto unknown_event;
}

View file

@ -54,6 +54,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_pay_debug);
* 1 = GST_EVENT_TAG
* 2 = GST_EVENT_CUSTOM_DOWNSTREAM
* 3 = GST_EVENT_CUSTOM_BOTH
* 4 = GST_EVENT_STREAM_START
*/
static GstStaticPadTemplate gst_rtp_gst_pay_sink_template =
@ -322,6 +323,9 @@ gst_rtp_gst_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event)
case GST_EVENT_CUSTOM_BOTH:
etype = 3;
break;
case GST_EVENT_STREAM_START:
etype = 4;
break;
default:
etype = 0;
GST_LOG_OBJECT (rtpgstpay, "no event for %s",