From 9d7ff947b12ce8f941f48101fa9812a745aa21c3 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 17 Feb 2023 17:28:39 +0100 Subject: [PATCH] Get the first input cleanly --- src/emu/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/thread.c b/src/emu/thread.c index ec119c0..b9491b0 100644 --- a/src/emu/thread.c +++ b/src/emu/thread.c @@ -210,7 +210,7 @@ thread_select_active(struct mux *mux, case TH_ST_RUNNING: case TH_ST_COOLING: case TH_ST_WARMING: - *input = mux->input; + *input = mux_get_input(mux, 0); break; default: *input = NULL; @@ -244,7 +244,7 @@ thread_select_running(struct mux *mux, switch (state) { case TH_ST_RUNNING: - *input = mux->input; + *input = mux_get_input(mux, 0); break; default: *input = NULL; @@ -274,7 +274,7 @@ thread_select_any(struct mux *mux, return -1; } - *input = mux->input; + *input = mux_get_input(mux, 0); return 0; }