mpegtsmux: Remove unneeded unref

packet_buffer has already been cleared in all code paths leading
to this point.

CID #1199696
This commit is contained in:
Edward Hervey 2014-04-11 11:34:26 +02:00
parent c400eef377
commit 998e19896b

View file

@ -937,8 +937,6 @@ tsmux_section_write_packet (GstMpegTsSectionType * type,
fail:
if (packet)
g_free (packet);
if (packet_buffer)
gst_buffer_unref (packet_buffer);
if (section_buffer)
gst_buffer_unref (section_buffer);
return FALSE;