summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-23 02:46:52 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-23 02:46:52 +0200
commita6074983abb109d227e9236061f9208c5da21d22 (patch)
treede5a07d739c939c47e065a331401f62e81b9ffa4 /src
parenta92bdc60e751083f0a989558e73213ad9baffdd8 (diff)
downloadpa-sink-ctl-a6074983abb109d227e9236061f9208c5da21d22.tar.gz
pa-sink-ctl-a6074983abb109d227e9236061f9208c5da21d22.tar.bz2
pa-sink-ctl-a6074983abb109d227e9236061f9208c5da21d22.zip
use blocked instead of pending var name for sync
Diffstat (limited to 'src')
-rw-r--r--src/interface.c8
-rw-r--r--src/pa-sink-ctl.c8
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;