ecore/audio: add ERR messages when trying to overwrite existing vio

this probably causes a crash or a leak at some point

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11526
This commit is contained in:
Mike Blumenkrantz 2020-03-17 12:02:23 -04:00 committed by Marcel Hollerbach
parent 66e2d71414
commit e8eb67a557
2 changed files with 8 additions and 2 deletions

View File

@ -155,7 +155,10 @@ _ecore_audio_in_ecore_audio_vio_set(Eo *eo_obj, Ecore_Audio_Input *obj, Ecore_Au
Ecore_Audio_Object *ea_obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS);
if (ea_obj->vio)
_free_vio(ea_obj);
{
ERR("VIO already set!");
_free_vio(ea_obj);
}
obj->seekable = obj->seekable_prev;

View File

@ -118,7 +118,10 @@ _ecore_audio_out_ecore_audio_vio_set(Eo *eo_obj, Ecore_Audio_Output *_pd EINA_UN
Ecore_Audio_Object *ea_obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS);
if (ea_obj->vio)
_free_vio(ea_obj);
{
ERR("VIO already set!");
_free_vio(ea_obj);
}
if (!vio)
return;