summaryrefslogtreecommitdiff
path: root/ext/voamrwbenc
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-12-22 17:09:30 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-12-22 17:16:52 +0100
commit7c66bf88801d19e4ceda7f74cc097a036ba7ab0f (patch)
treed11c7a81dbe7857e99bfbe63fccc4a3f19283da5 /ext/voamrwbenc
parent0ce5021058e74bd956612c3b23f37582477a7a8d (diff)
downloadgstreamer-plugins-bad-7c66bf88801d19e4ceda7f74cc097a036ba7ab0f.tar.gz
voamrwbenc: no need to duplicate baseclass sanity checks
Diffstat (limited to 'ext/voamrwbenc')
-rw-r--r--ext/voamrwbenc/gstvoamrwbenc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/voamrwbenc/gstvoamrwbenc.c b/ext/voamrwbenc/gstvoamrwbenc.c
index 0017b0246..2b3780239 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");