]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
audiod: Simplify start_stop_decoders().
authorAndre Noll <maan@systemlinux.org>
Tue, 31 Dec 2013 12:56:59 +0000 (12:56 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 May 2014 13:36:37 +0000 (15:36 +0200)
open_filters() DTRT if there are no filters configured.
No need to check twice.

audiod.c

index a8f401834b8a438d7b21d96920bc7b735f0a6c6b..b7b6d2d76af88ecbbb2f4a2f892f0848a4d5ad37 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1171,7 +1171,6 @@ static void start_stop_decoders(void)
 {
        int ret;
        struct slot_info *sl;
-       struct audio_format_info *a;
 
        close_unused_slots();
        if (audiod_status != AUDIOD_ON ||
@@ -1185,9 +1184,7 @@ static void start_stop_decoders(void)
                return;
        }
        sl = slot + ret;
-       a = afi + sl->format;
-       if (a->num_filters)
-               open_filters(sl);
+       open_filters(sl);
        open_writers(sl);
        activate_grab_clients(&sched);
        btr_log_tree(sl->receiver_node->btrn, LL_NOTICE);