raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=368e0c5d8fb2f6c0fd8bd34b5a64be9dd578bb55

commit 368e0c5d8fb2f6c0fd8bd34b5a64be9dd578bb55
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Jan 12 18:45:17 2018 +0900

    ecore_audio - don't about destruction because of failed sndfile load
    
    this means objetcs are only partly destroyed and that is wrong.
    
    @fix
---
 src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c  | 1 -
 src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c 
b/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c
index 22ad63d758..6af8a9949d 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c
@@ -203,7 +203,6 @@ _ecore_audio_in_sndfile_efl_object_destructor(Eo *eo_obj, 
Ecore_Audio_In_Sndfile
 {
   Ecore_Audio_Object *ea_obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS);
 
-  if (!ESF_LOAD()) return;
   if (obj->handle)
     ESF_CALL(sf_close)(obj->handle);
 
diff --git a/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c 
b/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c
index ab8ad7ba62..8b5e2160e0 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c
@@ -180,7 +180,6 @@ _ecore_audio_out_sndfile_efl_object_destructor(Eo *eo_obj, 
Ecore_Audio_Out_Sndfi
 {
   Ecore_Audio_Output *out_obj = efl_data_scope_get(eo_obj, 
ECORE_AUDIO_OUT_CLASS);
 
-  if (!ESF_LOAD()) return;
   if (obj->handle)
     ESF_CALL(sf_close)(obj->handle);
   if (out_obj->write_idler)

-- 


Reply via email to