forked from enlightenment/efl
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.
This commit is contained in:
parent
368e0c5d8f
commit
ce0ea3c297
|
@ -97,11 +97,7 @@ ecore_audio_pulse_lib_load(void)
|
|||
{
|
||||
if (ecore_audio_pulse_lib)
|
||||
{
|
||||
if (!ecore_audio_pulse_lib->mod)
|
||||
{
|
||||
ERR("Cannot find libpulse at runtime!");
|
||||
return EINA_FALSE;
|
||||
}
|
||||
if (!ecore_audio_pulse_lib->mod) return EINA_FALSE;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -167,6 +163,7 @@ err:
|
|||
{
|
||||
eina_module_free(ecore_audio_pulse_lib->mod);
|
||||
ecore_audio_pulse_lib->mod = NULL;
|
||||
ERR("Cannot find libpulse at runtime!");
|
||||
}
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
@ -190,11 +187,7 @@ ecore_audio_sndfile_lib_load(void)
|
|||
{
|
||||
if (ecore_audio_sndfile_lib)
|
||||
{
|
||||
if (!ecore_audio_sndfile_lib->mod)
|
||||
{
|
||||
ERR("Cannot find libsndfile at runtime!");
|
||||
return EINA_FALSE;
|
||||
}
|
||||
if (!ecore_audio_sndfile_lib->mod) return EINA_FALSE;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -243,6 +236,7 @@ err:
|
|||
{
|
||||
eina_module_free(ecore_audio_sndfile_lib->mod);
|
||||
ecore_audio_sndfile_lib->mod = NULL;
|
||||
ERR("Cannot find libsndfile at runtime!");
|
||||
}
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue