summaryrefslogtreecommitdiff
path: root/gst/mpegtsdemux
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-01-20 14:34:10 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-01-20 14:34:10 +0200
commit636cb4ce3229fa742a09a34774c22f9c3d653229 (patch)
treee2b464d458d6b0d8b5e76915c26f22f650106296 /gst/mpegtsdemux
parent08723e68df9988a8253ee0785937c3167cf74130 (diff)
tsdemux: Don't leak pad name and template for Opus
It's set again (the same way) further below, overwriting the previously allocated memory without freeing. https://bugzilla.gnome.org/show_bug.cgi?id=777533
Diffstat (limited to 'gst/mpegtsdemux')
-rw-r--r--gst/mpegtsdemux/tsdemux.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c
index c701c37f2..de4a0e9c2 100644
--- a/gst/mpegtsdemux/tsdemux.c
+++ b/gst/mpegtsdemux/tsdemux.c
@@ -1366,9 +1366,6 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
if (channels != -1) {
is_audio = TRUE;
- template = gst_static_pad_template_get (&audio_template);
- name = g_strdup_printf ("audio_%04x", bstream->pid);
-
caps =
gst_codec_utils_opus_create_caps (48000, channels,
mapping_family, stream_count, coupled_count,