summaryrefslogtreecommitdiff
path: root/gst/mpegtsmux
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 16:00:24 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 16:01:43 +0100
commit931150cb9102c2309188731d8fc602d9c8ac1c82 (patch)
tree810549f8547b0e2d1325dffd73505cb2db60f64a /gst/mpegtsmux
parent195470a785f5371cdcf3a55179c6304331c3978f (diff)
downloadgstreamer-plugins-bad-931150cb9102c2309188731d8fc602d9c8ac1c82.tar.gz
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 d347809a82e24057302f948269392e76aaacea10.
Diffstat (limited to 'gst/mpegtsmux')
-rw-r--r--gst/mpegtsmux/tsmux/tsmux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/mpegtsmux/tsmux/tsmux.c b/gst/mpegtsmux/tsmux/tsmux.c
index 1990dbd00..5b94ffad5 100644
--- a/gst/mpegtsmux/tsmux/tsmux.c
+++ b/gst/mpegtsmux/tsmux/tsmux.c
@@ -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 */