projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeaf4d1
)
tsdemux: remove unnecessary check
author
Tim-Philipp Müller
<tim@centricular.com>
Thu, 26 Mar 2015 11:34:10 +0000
(11:34 +0000)
committer
Tim-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
patch
|
blob
|
history
diff --git
a/gst/mpegtsdemux/pesparse.c
b/gst/mpegtsdemux/pesparse.c
index 08ec9a30325f04c136c77eb051780ba8a7378d1c..1d7a3b607de364b2957d1fdbe09db53890958a9f 100644
(file)
--- 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))