summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-01-12 18:46:04 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-01-12 22:32:39 +0900
commitce0ea3c297dd2c03f7d1b881847bd812cbc31193 (patch)
treec1e84231d8d7b6b84f8d0f4123f1e4d55ac21f67 /src/lib/ecore_audio
parent368e0c5d8fb2f6c0fd8bd34b5a64be9dd578bb55 (diff)
ecore_audio - only complain once about not loading pulse/sndfile
otherwise we get a complaint for everty time some audio needs/wants to play and that's just noisy and ugly, so only do it once - the first time sndfile/pulse are being loaded and it fails.
Diffstat (limited to 'src/lib/ecore_audio')
-rw-r--r--src/lib/ecore_audio/ecore_audio.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/ecore_audio/ecore_audio.c b/src/lib/ecore_audio/ecore_audio.c
index f57eca8..e083b88 100644
--- a/src/lib/ecore_audio/ecore_audio.c
+++ b/src/lib/ecore_audio/ecore_audio.c
@@ -97,11 +97,7 @@ ecore_audio_pulse_lib_load(void)
97{ 97{
98 if (ecore_audio_pulse_lib) 98 if (ecore_audio_pulse_lib)
99 { 99 {
100 if (!ecore_audio_pulse_lib->mod) 100 if (!ecore_audio_pulse_lib->mod) return EINA_FALSE;
101 {
102 ERR("Cannot find libpulse at runtime!");
103 return EINA_FALSE;
104 }
105 return EINA_TRUE; 101 return EINA_TRUE;
106 } 102 }
107 103
@@ -167,6 +163,7 @@ err:
167 { 163 {
168 eina_module_free(ecore_audio_pulse_lib->mod); 164 eina_module_free(ecore_audio_pulse_lib->mod);
169 ecore_audio_pulse_lib->mod = NULL; 165 ecore_audio_pulse_lib->mod = NULL;
166 ERR("Cannot find libpulse at runtime!");
170 } 167 }
171 return EINA_FALSE; 168 return EINA_FALSE;
172} 169}
@@ -190,11 +187,7 @@ ecore_audio_sndfile_lib_load(void)
190{ 187{
191 if (ecore_audio_sndfile_lib) 188 if (ecore_audio_sndfile_lib)
192 { 189 {
193 if (!ecore_audio_sndfile_lib->mod) 190 if (!ecore_audio_sndfile_lib->mod) return EINA_FALSE;
194 {
195 ERR("Cannot find libsndfile at runtime!");
196 return EINA_FALSE;
197 }
198 return EINA_TRUE; 191 return EINA_TRUE;
199 } 192 }
200 193
@@ -243,6 +236,7 @@ err:
243 { 236 {
244 eina_module_free(ecore_audio_sndfile_lib->mod); 237 eina_module_free(ecore_audio_sndfile_lib->mod);
245 ecore_audio_sndfile_lib->mod = NULL; 238 ecore_audio_sndfile_lib->mod = NULL;
239 ERR("Cannot find libsndfile at runtime!");
246 } 240 }
247 return EINA_FALSE; 241 return EINA_FALSE;
248} 242}