mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
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:
parent
195470a785
commit
931150cb91
1 changed files with 1 additions and 3 deletions
|
@ -848,7 +848,7 @@ tsmux_section_write_packet (GstMpegTsSectionType * type,
|
||||||
GstBuffer *section_buffer;
|
GstBuffer *section_buffer;
|
||||||
GstBuffer *packet_buffer = NULL;
|
GstBuffer *packet_buffer = NULL;
|
||||||
GstMemory *mem;
|
GstMemory *mem;
|
||||||
guint8 *packet = NULL;
|
guint8 *packet;
|
||||||
guint8 *data;
|
guint8 *data;
|
||||||
gsize data_size = 0;
|
gsize data_size = 0;
|
||||||
gsize payload_written;
|
gsize payload_written;
|
||||||
|
@ -882,8 +882,6 @@ tsmux_section_write_packet (GstMpegTsSectionType * type,
|
||||||
while (section->pi.stream_avail > 0) {
|
while (section->pi.stream_avail > 0) {
|
||||||
|
|
||||||
packet = g_malloc (TSMUX_PACKET_LENGTH);
|
packet = g_malloc (TSMUX_PACKET_LENGTH);
|
||||||
if (!packet)
|
|
||||||
goto fail;
|
|
||||||
|
|
||||||
if (section->pi.packet_start_unit_indicator) {
|
if (section->pi.packet_start_unit_indicator) {
|
||||||
/* Wee need room for a pointer byte */
|
/* Wee need room for a pointer byte */
|
||||||
|
|
Loading…
Reference in a new issue