summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2012-04-02 15:25:46 +0200
committerEdward Hervey <edward.hervey@collabora.co.uk>2012-04-02 15:25:46 +0200
commitdd6550a66343bb0a27ef649fb352a29a2810a77d (patch)
treeb9981a6b19118ad3707e29a476b3404b36e853fe
parentcd728627af821de210f08463c8fb25157c9cabf8 (diff)
mpegtspacketizer: Don't leak buffer in fast variant
-rw-r--r--gst/mpegtsdemux/mpegtspacketizer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/mpegtsdemux/mpegtspacketizer.c b/gst/mpegtsdemux/mpegtspacketizer.c
index 6e0335a28..41ff6dd37 100644
--- a/gst/mpegtsdemux/mpegtspacketizer.c
+++ b/gst/mpegtsdemux/mpegtspacketizer.c
@@ -2375,8 +2375,13 @@ MpegTSPacketizerPacketReturn
mpegts_packetizer_process_next_packet (MpegTSPacketizer2 * packetizer)
{
MpegTSPacketizerPacket packet;
+ MpegTSPacketizerPacketReturn ret;
- return mpegts_packetizer_next_packet (packetizer, &packet);
+ ret = mpegts_packetizer_next_packet (packetizer, &packet);
+ if (packet.buffer)
+ gst_buffer_unref (packet.buffer);
+
+ return ret;
}
void