speexdec: make speex_dec_convert work with same-format values when no data has been decoded.
This commit is contained in:
parent
9da04cd6af
commit
434d20862b
@ -197,17 +197,17 @@ speex_dec_convert (GstPad * pad,
|
|||||||
|
|
||||||
dec = GST_SPEEX_DEC (gst_pad_get_parent (pad));
|
dec = GST_SPEEX_DEC (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
if (dec->packetno < 1) {
|
|
||||||
res = FALSE;
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (src_format == *dest_format) {
|
if (src_format == *dest_format) {
|
||||||
*dest_value = src_value;
|
*dest_value = src_value;
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dec->packetno < 1) {
|
||||||
|
res = FALSE;
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
if (pad == dec->sinkpad &&
|
if (pad == dec->sinkpad &&
|
||||||
(src_format == GST_FORMAT_BYTES || *dest_format == GST_FORMAT_BYTES)) {
|
(src_format == GST_FORMAT_BYTES || *dest_format == GST_FORMAT_BYTES)) {
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user