diff options
author | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-04-02 15:25:46 +0200 |
---|---|---|
committer | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-04-02 15:25:46 +0200 |
commit | dd6550a66343bb0a27ef649fb352a29a2810a77d (patch) | |
tree | b9981a6b19118ad3707e29a476b3404b36e853fe | |
parent | cd728627af821de210f08463c8fb25157c9cabf8 (diff) |
mpegtspacketizer: Don't leak buffer in fast variant
-rw-r--r-- | gst/mpegtsdemux/mpegtspacketizer.c | 7 |
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 |