summaryrefslogtreecommitdiffstats
path: root/gst/mpegdemux/gstmpegtsdemux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/mpegdemux/gstmpegtsdemux.c')
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index 811646ee..5a9a41de 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -385,7 +385,10 @@ gst_mpegts_demux_reset (GstMpegTSDemux * demux)
gst_section_filter_uninit (&stream->section_filter);
break;
}
-
+ if (stream->pes_buffer) {
+ gst_buffer_unref (stream->pes_buffer);
+ stream->pes_buffer = NULL;
+ }
g_free (stream);
demux->streams[i] = NULL;
}