summaryrefslogtreecommitdiff
path: root/gst/mpegtsdemux/pesparse.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2015-03-26 11:34:10 +0000
committerTim-Philipp Müller <tim@centricular.com>2015-07-08 14:50:00 +0100
commitf0358aac160c02773a770d5f422896e6e62f92d9 (patch)
tree89247551eed077e94f7243a970f3b102a297c850 /gst/mpegtsdemux/pesparse.c
parenteeaf4d11b707ab5b39ff7f5f4ea208686ebcdba8 (diff)
downloadgstreamer-plugins-bad-f0358aac160c02773a770d5f422896e6e62f92d9.tar.gz
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.
Diffstat (limited to 'gst/mpegtsdemux/pesparse.c')
-rw-r--r--gst/mpegtsdemux/pesparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegtsdemux/pesparse.c b/gst/mpegtsdemux/pesparse.c
index 08ec9a303..1d7a3b607 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))