tsdemux: Don't leak pad name and template for Opus
authorSebastian Dröge <sebastian@centricular.com>
Fri, 20 Jan 2017 12:34:10 +0000 (14:34 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 25 Jan 2017 12:23:39 +0000 (14:23 +0200)
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

gst/mpegtsdemux/tsdemux.c

index abe21a15290854bf0ed488d714db393e942033b1..20357a87f208644d8b7b43abb391aef5726fbac8 100644 (file)
@@ -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,