speexdec: make speex_dec_convert work with same-format values when no data has been decoded.

This commit is contained in:
Alessandro Decina 2009-05-04 14:19:22 +02:00
parent 9da04cd6af
commit 434d20862b

View file

@ -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;