From 434d20862b22a2c2261ef12d4d7259ee16e29a77 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Mon, 4 May 2009 14:19:22 +0200 Subject: [PATCH] speexdec: make speex_dec_convert work with same-format values when no data has been decoded. --- ext/speex/gstspeexdec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index b70c45c63f..4dd0c0ac22 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -197,17 +197,17 @@ speex_dec_convert (GstPad * pad, dec = GST_SPEEX_DEC (gst_pad_get_parent (pad)); - if (dec->packetno < 1) { - res = FALSE; - goto cleanup; - } - if (src_format == *dest_format) { *dest_value = src_value; res = TRUE; goto cleanup; } + if (dec->packetno < 1) { + res = FALSE; + goto cleanup; + } + if (pad == dec->sinkpad && (src_format == GST_FORMAT_BYTES || *dest_format == GST_FORMAT_BYTES)) { res = FALSE;