From: Sebastian Dröge Date: Thu, 5 Mar 2015 08:56:23 +0000 (+0100) Subject: rtspsrc: Don't unref caps we don't own X-Git-Tag: 1.6.0~544 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4aaa11f9733ba1800f7e88e3de911404aee7b11;p=platform%2Fupstream%2Fgst-plugins-good.git rtspsrc: Don't unref caps we don't own --- diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 0719b90..552bfde 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -4600,7 +4600,6 @@ gst_rtspsrc_handle_data (GstRTSPSrc * src, GstRTSPMessage * message) gst_event_new_caps (caps)); } - gst_caps_unref (caps); caps = gst_caps_new_empty_simple ("application/x-rtcp"); if (ostream->udpsrc[1]) { @@ -4615,8 +4614,6 @@ gst_rtspsrc_handle_data (GstRTSPSrc * src, GstRTSPMessage * message) gst_event_new_caps (caps)); } } - - gst_caps_unref (caps); } /* Push a SEGMENT event if we don't have one pending, if we have one