tsdemux: remove unnecessary check

This is not public API, use g_assert() instead of
g_return_if_fail(), so that it's compiled out in
releases. It's only called from our code, with &foo.
This commit is contained in:
Tim-Philipp Müller 2015-03-26 11:34:10 +00:00
parent eeaf4d11b7
commit f0358aac16

View file

@ -53,7 +53,7 @@ mpegts_parse_pes_header (const guint8 * data, gsize length, PESHeader * res)
guint32 val32;
guint8 val8, flags;
g_return_val_if_fail (res != NULL, PES_PARSING_BAD);
g_assert (res != NULL);
/* The smallest valid PES header is 6 bytes (prefix + stream_id + length) */
if (G_UNLIKELY (length < 6))