mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
mpegtspacketizer: Don't leak buffer in fast variant
This commit is contained in:
parent
cd728627af
commit
dd6550a663
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue