Revert "tsmux: catch alloc failure"

Turns out glib aborts on allocation failure, so this is pointless.
We'll just ignore Coverity warnings on such constructs.

This reverts commit d347809a82.
This commit is contained in:
Vincent Penquerc'h 2014-04-09 16:00:24 +01:00
parent 195470a785
commit 931150cb91

View file

@ -848,7 +848,7 @@ tsmux_section_write_packet (GstMpegTsSectionType * type,
GstBuffer *section_buffer;
GstBuffer *packet_buffer = NULL;
GstMemory *mem;
guint8 *packet = NULL;
guint8 *packet;
guint8 *data;
gsize data_size = 0;
gsize payload_written;
@ -882,8 +882,6 @@ tsmux_section_write_packet (GstMpegTsSectionType * type,
while (section->pi.stream_avail > 0) {
packet = g_malloc (TSMUX_PACKET_LENGTH);
if (!packet)
goto fail;
if (section->pi.packet_start_unit_indicator) {
/* Wee need room for a pointer byte */