voamrwbenc: no need to duplicate baseclass sanity checks
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 22 Dec 2011 16:09:30 +0000 (17:09 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 22 Dec 2011 16:16:52 +0000 (17:16 +0100)
ext/voamrwbenc/gstvoamrwbenc.c

index 0017b02..2b37802 100644 (file)
@@ -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");