diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-22 13:55:19 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-22 13:55:19 +0000 |
commit | 8c7d218f4e5cc83296dcfba0e238ca2cc57c6b74 (patch) | |
tree | 068c2f4b00fa6a2f3167cd8994bc103f36f8d6d0 /indra | |
parent | 7fb16ca505d8291448b5538b4f6203bf47bced40 (diff) |
bunch o'fixing
Diffstat (limited to 'indra')
-rw-r--r-- | indra/media_plugins/webkit/linux_volume_catcher.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/indra/media_plugins/webkit/linux_volume_catcher.cpp b/indra/media_plugins/webkit/linux_volume_catcher.cpp index 6eb5a9a30c..a6a2ec7c7a 100644 --- a/indra/media_plugins/webkit/linux_volume_catcher.cpp +++ b/indra/media_plugins/webkit/linux_volume_catcher.cpp @@ -158,7 +158,8 @@ void LinuxVolumeCatcherImpl::setVol(F32 volume) void LinuxVolumeCatcherImpl::pump() { - g_main_context_iteration(g_main_context_default()); + gboolean may_block = FALSE; + g_main_context_iteration(g_main_context_default(), may_block); } void LinuxVolumeCatcherImpl::connected_okay() @@ -166,9 +167,9 @@ void LinuxVolumeCatcherImpl::connected_okay() pa_operation *op; // fetch global list of existing sinkinputs - if (op = pa_context_get_sink_input_info_list(mPAContext, + if ((op = pa_context_get_sink_input_info_list(mPAContext, callback_discovered_sinkinput, - this)) + this))) { pa_operation_unref(op); } @@ -177,9 +178,9 @@ void LinuxVolumeCatcherImpl::connected_okay() pa_context_set_subscribe_callback(mPAContext, callback_subscription_alert, this); - if (op = pa_context_subscribe(mPAContext, (pa_subscription_mask_t) + if ((op = pa_context_subscribe(mPAContext, (pa_subscription_mask_t) (PA_SUBSCRIPTION_MASK_SINK_INPUT), - NULL, NULL)) + NULL, NULL))) { pa_operation_unref(op); } @@ -202,11 +203,11 @@ void LinuxVolumeCatcherImpl::update_index_volume(U32 index, F32 volume) pa_context *c = mPAContext; uint32_t idx = index; - const pa_cvolume *volume = &cvol; + const pa_cvolume *cvolumep = &cvol; pa_context_success_cb_t cb = NULL; // okay as null void *userdata = NULL; // okay as null - if (op = pa_context_set_sink_input_volume(c, idx, volume, cb, userdata)) + if ((op = pa_context_set_sink_input_volume(c, idx, cvolumep, cb, userdata))) { pa_operation_unref(op); } @@ -264,7 +265,7 @@ void callback_subscription_alert(pa_context *context, pa_subscription_event_type { // ask for more info about this new sinkinput pa_operation *op; - if (op = pa_context_get_sink_input_info(impl->mPAContext, index, callback_discovered_sinkinput, impl)) + if ((op = pa_context_get_sink_input_info(impl->mPAContext, index, callback_discovered_sinkinput, impl))) { pa_operation_unref(o); } |