forked from enlightenment/efl
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:
parent
66e2d71414
commit
e8eb67a557
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue