From: Tim-Philipp Müller Date: Thu, 26 Mar 2015 11:34:10 +0000 (+0000) Subject: tsdemux: remove unnecessary check X-Git-Tag: 1.19.3~507^2~8356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0358aac160c02773a770d5f422896e6e62f92d9;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst/mpegtsdemux/pesparse.c b/gst/mpegtsdemux/pesparse.c index 08ec9a3..1d7a3b6 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))