mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
rtpgstpay: fix invalid memory access in event handler
First process event in payloader, then hand it to the base class which takes ownership of the event. https://bugzilla.gnome.org/show_bug.cgi?id=699637
This commit is contained in:
parent
68ac392e8f
commit
9532b04947
1 changed files with 2 additions and 2 deletions
|
@ -308,8 +308,6 @@ gst_rtp_gst_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event)
|
||||||
|
|
||||||
rtpgstpay = GST_RTP_GST_PAY (payload);
|
rtpgstpay = GST_RTP_GST_PAY (payload);
|
||||||
|
|
||||||
ret = GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->sink_event (payload, event);
|
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_TAG:
|
case GST_EVENT_TAG:
|
||||||
etype = 1;
|
etype = 1;
|
||||||
|
@ -350,6 +348,8 @@ gst_rtp_gst_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event)
|
||||||
gst_rtp_gst_pay_flush (rtpgstpay, GST_CLOCK_TIME_NONE);
|
gst_rtp_gst_pay_flush (rtpgstpay, GST_CLOCK_TIME_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->sink_event (payload, event);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue