Revert "tsmux: catch alloc failure"
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 15:00:24 +0000 (16:00 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 15:01:43 +0000 (16:01 +0100)
Turns out glib aborts on allocation failure, so this is pointless.
We'll just ignore Coverity warnings on such constructs.

This reverts commit d347809a82e24057302f948269392e76aaacea10.

gst/mpegtsmux/tsmux/tsmux.c

index 1990dbd..5b94ffa 100644 (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 */