summaryrefslogtreecommitdiffstats
path: root/ext/speex/gstspeexdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/speex/gstspeexdec.c')
-rw-r--r--ext/speex/gstspeexdec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c
index b70c45c6..4dd0c0ac 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;