mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 15:38:53 +00:00
rtpgstpay: Add etype=4 for payloading GST_EVENT_STREAM_START
This commit is contained in:
parent
6155b27971
commit
0070ba76f2
2 changed files with 7 additions and 0 deletions
|
@ -277,6 +277,9 @@ read_event (GstRtpGSTDepay * rtpgstdepay, guint type,
|
||||||
case 3:
|
case 3:
|
||||||
etype = GST_EVENT_CUSTOM_BOTH;
|
etype = GST_EVENT_CUSTOM_BOTH;
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
etype = GST_EVENT_STREAM_START;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
goto unknown_event;
|
goto unknown_event;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_pay_debug);
|
||||||
* 1 = GST_EVENT_TAG
|
* 1 = GST_EVENT_TAG
|
||||||
* 2 = GST_EVENT_CUSTOM_DOWNSTREAM
|
* 2 = GST_EVENT_CUSTOM_DOWNSTREAM
|
||||||
* 3 = GST_EVENT_CUSTOM_BOTH
|
* 3 = GST_EVENT_CUSTOM_BOTH
|
||||||
|
* 4 = GST_EVENT_STREAM_START
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_rtp_gst_pay_sink_template =
|
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:
|
case GST_EVENT_CUSTOM_BOTH:
|
||||||
etype = 3;
|
etype = 3;
|
||||||
break;
|
break;
|
||||||
|
case GST_EVENT_STREAM_START:
|
||||||
|
etype = 4;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
etype = 0;
|
etype = 0;
|
||||||
GST_LOG_OBJECT (rtpgstpay, "no event for %s",
|
GST_LOG_OBJECT (rtpgstpay, "no event for %s",
|
||||||
|
|
Loading…
Reference in a new issue