From f0358aac160c02773a770d5f422896e6e62f92d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 26 Mar 2015 11:34:10 +0000 Subject: [PATCH] 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. --- gst/mpegtsdemux/pesparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/mpegtsdemux/pesparse.c b/gst/mpegtsdemux/pesparse.c index 08ec9a3032..1d7a3b607d 100644 --- a/gst/mpegtsdemux/pesparse.c +++ b/gst/mpegtsdemux/pesparse.c @@ -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))