mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
voamrwbenc: no need to duplicate baseclass sanity checks
This commit is contained in:
parent
0ce5021058
commit
7c66bf8880
1 changed files with 0 additions and 5 deletions
|
@ -280,11 +280,6 @@ gst_voamrwbenc_handle_frame (GstAudioEncoder * benc, GstBuffer * buffer)
|
|||
|
||||
g_return_val_if_fail (amrwbenc->handle, GST_FLOW_NOT_NEGOTIATED);
|
||||
|
||||
if (amrwbenc->rate == 0 || amrwbenc->channels == 0) {
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* we don't deal with squeezing remnants, so simply discard those */
|
||||
if (G_UNLIKELY (buffer == NULL)) {
|
||||
GST_DEBUG_OBJECT (amrwbenc, "no data");
|
||||
|
|
Loading…
Reference in a new issue