mpegtsmux: remove unnecessary buffer check

buf surely isn't NULL inside the block conditional to a buffer size bigger
than (G_MAXUINT16 - 3). Plus gst_buffer_unref() checks if the buffer is
NULL and does nothing if it is.

CID 1338693
This commit is contained in:
Luis de Bethencourt 2015-11-12 11:42:36 +00:00
parent 7c495b711e
commit 7bec955fe0

View file

@ -1308,8 +1308,8 @@ mpegtsmux_collected_buffer (GstCollectPads * pads, GstCollectData * data,
if (best->stream->is_meta && gst_buffer_get_size (buf) > (G_MAXUINT16 - 3)) {
GST_WARNING_OBJECT (mux, "KLV meta unit too big, splitting not supported");
if (buf)
gst_buffer_unref (buf);
gst_buffer_unref (buf);
return GST_FLOW_OK;
}