summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2013-12-15 10:13:37 -0500
committerMike Blumenkrantz <zmike@samsung.com>2013-12-15 10:13:37 -0500
commit39cf0a5a1bfaac31f911bf833ee949f1e2e1a100 (patch)
tree1f1123a39cb37709b818f2e7563588b74ec5d50f /src
parentbccda8e7b3ddc47697bb16a585a76f617d30e0bf (diff)
try connecting to pulse on a timer after it gets started in case it's a slow startup
Diffstat (limited to 'src')
-rw-r--r--src/modules/mixer/sys_pulse.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/mixer/sys_pulse.c b/src/modules/mixer/sys_pulse.c
index 1bfab2de0..73a2bef98 100644
--- a/src/modules/mixer/sys_pulse.c
+++ b/src/modules/mixer/sys_pulse.c
@@ -19,12 +19,20 @@ static unsigned int disc_count = 0;
19static unsigned int update_count = 0; 19static unsigned int update_count = 0;
20static Ecore_Timer *update_timer = NULL; 20static Ecore_Timer *update_timer = NULL;
21 21
22static Eina_Bool
23_pulse_start(void *d EINA_UNUSED)
24{
25 update_timer = NULL;
26 e_mixer_pulse_init();
27 return EINA_FALSE;
28}
22 29
23static Eina_Bool 30static Eina_Bool
24_pulse_started(void *data EINA_UNUSED, int type EINA_UNUSED, E_Exec_Instance *inst) 31_pulse_started(void *data EINA_UNUSED, int type EINA_UNUSED, E_Exec_Instance *inst)
25{ 32{
26 if (inst != pulse_inst) return ECORE_CALLBACK_RENEW; 33 if (inst != pulse_inst) return ECORE_CALLBACK_RENEW;
27 e_mixer_pulse_init(); 34 if (!update_timer)
35 update_timer = ecore_timer_add(2.0, _pulse_start, NULL);
28 return ECORE_CALLBACK_DONE; 36 return ECORE_CALLBACK_DONE;
29} 37}
30 38