mpegtspacketizer: Don't leak buffer in fast variant

This commit is contained in:
Edward Hervey 2012-04-02 15:25:46 +02:00
parent cd728627af
commit dd6550a663

View file

@ -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