tsdemux: remove unnecessary check
authorTim-Philipp Müller <tim@centricular.com>
Thu, 26 Mar 2015 11:34:10 +0000 (11:34 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 8 Jul 2015 13:50:00 +0000 (14:50 +0100)
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.

gst/mpegtsdemux/pesparse.c

index 08ec9a3..1d7a3b6 100644 (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))