mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
voaacenc: no need to duplicate baseclass sanity checks
This commit is contained in:
parent
7c66bf8880
commit
cec45d6328
1 changed files with 0 additions and 10 deletions
|
@ -454,9 +454,6 @@ gst_voaacenc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf)
|
|||
|
||||
g_return_val_if_fail (voaacenc->handle, GST_FLOW_NOT_NEGOTIATED);
|
||||
|
||||
if (voaacenc->rate == 0 || voaacenc->channels == 0)
|
||||
goto not_negotiated;
|
||||
|
||||
/* we don't deal with squeezing remnants, so simply discard those */
|
||||
if (G_UNLIKELY (buf == NULL)) {
|
||||
GST_DEBUG_OBJECT (benc, "no data");
|
||||
|
@ -508,13 +505,6 @@ exit:
|
|||
return ret;
|
||||
|
||||
/* ERRORS */
|
||||
not_negotiated:
|
||||
{
|
||||
GST_ELEMENT_ERROR (voaacenc, STREAM, TYPE_NOT_FOUND,
|
||||
(NULL), ("unknown type"));
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
goto exit;
|
||||
}
|
||||
encode_failed:
|
||||
{
|
||||
GST_ELEMENT_ERROR (voaacenc, STREAM, ENCODE, (NULL), ("encode failed"));
|
||||
|
|
Loading…
Reference in a new issue