projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6da70e2
)
amrnbdec: Don't use g_return_*_if_fail() on data parsing
author
Edward Hervey
<edward@centricular.com>
Wed, 3 Jan 2018 15:02:08 +0000
(16:02 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Wed, 3 Jan 2018 15:04:26 +0000
(16:04 +0100)
Those functions can be disabled. Instead just use the (existing)
function.
CID #
1427121
ext/amrnb/amrnbdec.c
patch
|
blob
|
history
diff --git
a/ext/amrnb/amrnbdec.c
b/ext/amrnb/amrnbdec.c
index 653f1c59230788b1be900842f3436554e4d1b5e9..8f2c422990cc87424717a0f99791eefb4cc3ebac 100644
(file)
--- a/
ext/amrnb/amrnbdec.c
+++ b/
ext/amrnb/amrnbdec.c
@@
-241,14
+241,12
@@
gst_amrnbdec_parse (GstAudioDecoder * dec, GstAdapter * adapter,
gint block, mode;
size = gst_adapter_available (adapter);
- g_return_val_if_fail (size > 0, GST_FLOW_ERROR);
+ if (size < 1)
+ return GST_FLOW_ERROR;
gst_audio_decoder_get_parse_state (dec, &sync, &eos);
/* need to peek data to get the size */
- if (size < 1)
- return GST_FLOW_ERROR;
-
gst_adapter_copy (adapter, head, 0, 1);
/* get size */