Codebase list squeezelite / 1fa9d9e
allow output to start in off state for -C option Adrian Smith 9 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
362362 dop_silence_frames((u32_t *)silencebuf_dop, MAX_SILENCE_FRAMES);
363363 )
364364
365 output.state = OUTPUT_STOPPED;
365 LOG_DEBUG("idle timeout: %u", idle);
366
367 output.state = idle ? OUTPUT_OFF: OUTPUT_STOPPED;
366368 output.device = device;
367369 output.fade = FADE_INACTIVE;
368370 output.error_opening = false;
439439
440440 static void *output_thread(void *arg) {
441441 bool start = true;
442 bool output_off = false, probe_device = (arg != NULL);
442 bool output_off = (output.state == OUTPUT_OFF);
443 bool probe_device = (arg != NULL);
443444 int err;
444445
445446 while (running) {