mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
flvdemux: don't leak stream_id string
https://bugzilla.gnome.org/show_bug.cgi?id=705142
This commit is contained in:
parent
ffe003200e
commit
a5532b4510
1 changed files with 3 additions and 0 deletions
|
@ -813,6 +813,7 @@ gst_flv_demux_audio_negotiate (GstFlvDemux * demux, guint32 codec_tag,
|
|||
gst_event_set_group_id (event, demux->group_id);
|
||||
gst_pad_push_event (demux->audio_pad, event);
|
||||
g_free (stream_id);
|
||||
|
||||
ret = gst_pad_set_caps (demux->audio_pad, caps);
|
||||
|
||||
if (G_LIKELY (ret)) {
|
||||
|
@ -1267,6 +1268,8 @@ gst_flv_demux_video_negotiate (GstFlvDemux * demux, guint32 codec_tag)
|
|||
gst_pad_create_stream_id (demux->video_pad, GST_ELEMENT_CAST (demux),
|
||||
"video");
|
||||
event = gst_event_new_stream_start (stream_id);
|
||||
g_free (stream_id);
|
||||
|
||||
if (have_group_id (demux))
|
||||
gst_event_set_group_id (event, demux->group_id);
|
||||
gst_pad_push_event (demux->video_pad, event);
|
||||
|
|
Loading…
Reference in a new issue