From 574daf73a793b0f8d7a2af168855003710e340fe Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 31 Dec 2013 12:56:59 +0000 Subject: [PATCH] audiod: Simplify start_stop_decoders(). open_filters() DTRT if there are no filters configured. No need to check twice. --- audiod.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/audiod.c b/audiod.c index a8f40183..b7b6d2d7 100644 --- 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); -- 2.30.2