Merge branch 't/sched_improvements'
[paraslash.git] / aacdec_filter.c
index 9cea898035d77bea71c860a486e6bf609faeffbd..3ff90834c62bb75f179e5778ef02f6d23feb0d09 100644 (file)
@@ -122,7 +122,7 @@ next_buffer:
                        ret = -E_AACDEC_INIT;
                        if (NeAACDecInit2(padd->handle, p,
                                        padd->decoder_length, &rate,
-                                       &channels) < 0)
+                                       &channels) != 0)
                                goto out;
                }
                padd->sample_rate = rate;
@@ -218,7 +218,6 @@ void aacdec_filter_init(struct filter *f)
        f->open = aacdec_open;
        f->close = aacdec_close;
        f->pre_select = generic_filter_pre_select;
-       f->new_post_select = aacdec_post_select;
-       f->post_select = NULL;
+       f->post_select = aacdec_post_select;
        f->execute = aacdec_execute;
 }