diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2013-07-30 14:28:19 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-07-30 14:30:59 +0100 |
commit | e06288a447655d0f77e7f585a7deb52514a9b763 (patch) | |
tree | a8d87fc22adeba9ad8d0e426cce0b10442574b23 | |
parent | ff2598f48d372049fbb4093b94af10b8d8689331 (diff) | |
download | gst-plugins-good-e06288a447655d0f77e7f585a7deb52514a9b763.tar.gz gst-plugins-good-e06288a447655d0f77e7f585a7deb52514a9b763.tar.xz |
flvdemux: don't leak stream_id string
https://bugzilla.gnome.org/show_bug.cgi?id=705142
Conflicts:
gst/flv/gstflvdemux.c
-rw-r--r-- | gst/flv/gstflvdemux.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)) { |