summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-12-11 11:54:43 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-12-11 11:54:43 +0000
commitb23e28b2f293e8cf5d8c890ed02fe84c8f92d20f (patch)
treed5136638cfc6b904d1fbd66cd4d2b0c7e36b3b20 /gst
parent8b973428f3f1b2df938ea4a2f5786b3ff5f1e925 (diff)
downloadgst-plugins-bad-b23e28b2f293e8cf5d8c890ed02fe84c8f92d20f.tar.gz
gst-plugins-bad-b23e28b2f293e8cf5d8c890ed02fe84c8f92d20f.tar.bz2
gst-plugins-bad-b23e28b2f293e8cf5d8c890ed02fe84c8f92d20f.zip
gst/flv/gstflvparse.c: Don't strdup (and thus leak) codec name strings when passing them to gst_tag_list_add().
Original commit message from CVS: * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video): Don't strdup (and thus leak) codec name strings when passing them to gst_tag_list_add().
Diffstat (limited to 'gst')
-rw-r--r--gst/flv/gstflvparse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/flv/gstflvparse.c b/gst/flv/gstflvparse.c
index f7954665..a29e873b 100644
--- a/gst/flv/gstflvparse.c
+++ b/gst/flv/gstflvparse.c
@@ -494,7 +494,7 @@ gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data,
if (demux->taglist == NULL)
demux->taglist = gst_tag_list_new ();
gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
- GST_TAG_AUDIO_CODEC, g_strdup (codec_name), NULL);
+ GST_TAG_AUDIO_CODEC, codec_name, NULL);
}
GST_DEBUG_OBJECT (demux, "created audio pad with caps %" GST_PTR_FORMAT,
@@ -577,7 +577,7 @@ gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data,
if (demux->taglist == NULL)
demux->taglist = gst_tag_list_new ();
gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
- GST_TAG_AUDIO_CODEC, g_strdup (codec_name), NULL);
+ GST_TAG_AUDIO_CODEC, codec_name, NULL);
}
gst_caps_unref (caps);
@@ -767,7 +767,7 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
if (demux->taglist == NULL)
demux->taglist = gst_tag_list_new ();
gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
- GST_TAG_VIDEO_CODEC, g_strdup (codec_name), NULL);
+ GST_TAG_VIDEO_CODEC, codec_name, NULL);
}
/* Store the caps we have set */
@@ -839,7 +839,7 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
if (demux->taglist == NULL)
demux->taglist = gst_tag_list_new ();
gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
- GST_TAG_VIDEO_CODEC, g_strdup (codec_name), NULL);
+ GST_TAG_VIDEO_CODEC, codec_name, NULL);
}
/* Store the caps we have set */