mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
amrnbdec: Don't use g_return_*_if_fail() on data parsing
Those functions can be disabled. Instead just use the (existing) function. CID #1427121
This commit is contained in:
parent
6da70e278a
commit
63f8d33a6f
1 changed files with 2 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue