From: Andre Noll Date: Tue, 31 Dec 2013 12:56:59 +0000 (+0000) Subject: audiod: Simplify start_stop_decoders(). X-Git-Tag: v0.5.3~8^2~33 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=574daf73a793b0f8d7a2af168855003710e340fe;hp=b8290b7cad010552873c5e640e56dbe9c901dfb1 audiod: Simplify start_stop_decoders(). open_filters() DTRT if there are no filters configured. No need to check twice. --- 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);