tsmux: prevent possible double free on error path

Spotted while looking at a Coverity issue in the area.
This commit is contained in:
Vincent Penquerc'h 2014-04-09 13:43:10 +01:00
parent d347809a82
commit d6dc066527

View file

@ -926,6 +926,7 @@ tsmux_section_write_packet (GstMpegTsSectionType * type,
goto fail;
}
packet_buffer = NULL;
section->pi.stream_avail -= len;
payload_written += payload_len;
section->pi.packet_start_unit_indicator = FALSE;