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:
Sebastian Rasmussen 2013-05-03 23:43:26 +02:00 committed by Tim-Philipp Müller
parent 68ac392e8f
commit 9532b04947

View file

@ -308,8 +308,6 @@ gst_rtp_gst_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event)
rtpgstpay = GST_RTP_GST_PAY (payload);
ret = GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->sink_event (payload, event);
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_TAG:
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);
}
ret = GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->sink_event (payload, event);
return ret;
}