From 7c66bf88801d19e4ceda7f74cc097a036ba7ab0f Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 22 Dec 2011 17:09:30 +0100 Subject: [PATCH] voamrwbenc: no need to duplicate baseclass sanity checks --- ext/voamrwbenc/gstvoamrwbenc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ext/voamrwbenc/gstvoamrwbenc.c b/ext/voamrwbenc/gstvoamrwbenc.c index 0017b02..2b37802 100644 --- a/ext/voamrwbenc/gstvoamrwbenc.c +++ b/ext/voamrwbenc/gstvoamrwbenc.c @@ -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"); -- 2.7.4