diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2020-03-17 12:02:23 -0400 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-03-25 22:12:59 +0100 |
commit | e8eb67a557485caaca3733ae66f4da4c36517134 (patch) | |
tree | 64d2065c4675f186d517bdd3746602f28acddd1c | |
parent | 66e2d71414718c65a2c8905118b4c55b6e4e4044 (diff) | |
download | efl-e8eb67a557485caaca3733ae66f4da4c36517134.tar.gz |
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
-rw-r--r-- | src/lib/ecore_audio/ecore_audio_obj_in.c | 5 | ||||
-rw-r--r-- | src/lib/ecore_audio/ecore_audio_obj_out.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_obj_in.c b/src/lib/ecore_audio/ecore_audio_obj_in.c index b2a8f912c3..dcb792c8af 100644 --- a/src/lib/ecore_audio/ecore_audio_obj_in.c +++ b/src/lib/ecore_audio/ecore_audio_obj_in.c @@ -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; diff --git a/src/lib/ecore_audio/ecore_audio_obj_out.c b/src/lib/ecore_audio/ecore_audio_obj_out.c index 7e1d39beca..4c05b218da 100644 --- a/src/lib/ecore_audio/ecore_audio_obj_out.c +++ b/src/lib/ecore_audio/ecore_audio_obj_out.c @@ -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; |