From e06288a447655d0f77e7f585a7deb52514a9b763 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Tue, 30 Jul 2013 14:28:19 +0100 Subject: flvdemux: don't leak stream_id string https://bugzilla.gnome.org/show_bug.cgi?id=705142 Conflicts: gst/flv/gstflvdemux.c --- gst/flv/gstflvdemux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index 9f8cbe257..5c4c58250 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -788,6 +788,7 @@ gst_flv_demux_audio_negotiate (GstFlvDemux * demux, guint32 codec_tag, "audio"); gst_pad_push_event (demux->audio_pad, gst_event_new_stream_start (stream_id)); g_free (stream_id); + ret = gst_pad_set_caps (demux->audio_pad, caps); if (G_LIKELY (ret)) { @@ -1241,6 +1242,8 @@ gst_flv_demux_video_negotiate (GstFlvDemux * demux, guint32 codec_tag) gst_pad_create_stream_id (demux->video_pad, GST_ELEMENT_CAST (demux), "video"); gst_pad_push_event (demux->video_pad, gst_event_new_stream_start (stream_id)); + g_free (stream_id); + ret = gst_pad_set_caps (demux->video_pad, caps); if (G_LIKELY (ret)) { -- cgit v1.2.3