ecore_audio - don't about destruction because of failed sndfile load
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 12 Jan 2018 09:45:17 +0000 (18:45 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 17 Jan 2018 09:19:29 +0000 (18:19 +0900)
this means objetcs are only partly destroyed and that is wrong.

@fix

src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c
src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c

index 22ad63d..6af8a99 100644 (file)
@@ -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);
 
index ab8ad7b..8b5e216 100644 (file)
@@ -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)