From 9532b04947baf701585a8643c90b1e1c48498be3 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Fri, 3 May 2013 23:43:26 +0200 Subject: [PATCH] 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 --- gst/rtp/gstrtpgstpay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtp/gstrtpgstpay.c b/gst/rtp/gstrtpgstpay.c index b4120c6d03..6c1bba3892 100644 --- a/gst/rtp/gstrtpgstpay.c +++ b/gst/rtp/gstrtpgstpay.c @@ -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; }