mp3dec: Don't check for bad data delay on errors.
authorAndre Noll <maan@systemlinux.org>
Wed, 13 Jan 2010 06:37:00 +0000 (07:37 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 13 Jan 2010 06:37:00 +0000 (07:37 +0100)
mp3dec_filter.c

index bff4209..696367d 100644 (file)
@@ -131,11 +131,11 @@ next_buffer:
        pmd->stream.error = 0;
        t->error = 0;
        iqs = btr_get_input_queue_size(btrn);
-       if (need_bad_data_delay(pmd, iqs))
-               return;
        ret = btr_node_status(btrn, fn->min_iqs, BTR_NT_INTERNAL);
        if (ret < 0)
                goto err;
+       if (need_bad_data_delay(pmd, iqs))
+               return;
        if (ret == 0)
                return;
        btr_merge(btrn, fn->min_iqs);