diff options
-rw-r--r-- | src/interface.c | 8 | ||||
-rw-r--r-- | src/pa-sink-ctl.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/interface.c b/src/interface.c index f78862a..c09a1ad 100644 --- a/src/interface.c +++ b/src/interface.c @@ -30,20 +30,20 @@ static guint32 selected_index; static void _resize(gint signal) { static gboolean resize_running = FALSE; - static gboolean resize_pending = FALSE; + static gboolean resize_blocked = FALSE; sigaction(SIGWINCH, &(struct sigaction){_resize}, NULL); if (resize_running) { - resize_pending = TRUE; + resize_blocked = TRUE; return; } resize_running = TRUE; do { - resize_pending = FALSE; + resize_blocked = FALSE; interface_resize(); - } while (resize_pending); + } while (resize_blocked); resize_running = FALSE; } diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index b6b0f4b..3d9421d 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -12,7 +12,7 @@ GArray *sink_list = NULL; pa_context *context = NULL; static gboolean info_callbacks_finished = TRUE; -static gboolean state_callback_pending = FALSE; +static gboolean info_callbacks_blocked = FALSE; int main(int argc, char** argv) { @@ -60,7 +60,7 @@ int main(int argc, char** argv) static void subscribe_cb(pa_context *c, pa_subscription_event_type_t t, guint32 idx, gpointer userdata) { if (!info_callbacks_finished) - state_callback_pending = TRUE; + info_callbacks_blocked = TRUE; else collect_all_info(); } @@ -165,8 +165,8 @@ void get_sink_input_info_callback(pa_context *c, const pa_sink_input_info *i, gi print_sink_list(); - if (state_callback_pending) { - state_callback_pending = FALSE; + if (info_callbacks_blocked) { + info_callbacks_blocked = FALSE; collect_all_info(); } return; |