diff options
author | Alessandro Decina <alessandro.d@gmail.com> | 2009-05-04 14:19:22 +0200 |
---|---|---|
committer | Alessandro Decina <alessandro.d@gmail.com> | 2009-05-04 14:24:14 +0200 |
commit | 434d20862b22a2c2261ef12d4d7259ee16e29a77 (patch) | |
tree | 05360a185bb052587bf0b5528dc28dd5103916a6 /ext/speex | |
parent | 9da04cd6af2ee8c6d162aceb020517fd30a310a1 (diff) |
speexdec: make speex_dec_convert work with same-format values when no data has been decoded.
Diffstat (limited to 'ext/speex')
-rw-r--r-- | ext/speex/gstspeexdec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index b70c45c63..4dd0c0ac2 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; |