ecore_audio: Remember previous seekable state in vio_set

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
Daniel Willmann 2013-04-29 18:23:59 +01:00
parent de0d0dce2e
commit 108509c3f8
2 changed files with 5 additions and 1 deletions

View File

@ -218,6 +218,8 @@ static void _vio_set(Eo *eo_obj, void *_pd, va_list *list)
if (ea_obj->vio)
_free_vio(ea_obj);
obj->seekable = obj->seekable_prev;
if (!vio)
return;
@ -225,7 +227,8 @@ static void _vio_set(Eo *eo_obj, void *_pd, va_list *list)
ea_obj->vio->vio = vio;
ea_obj->vio->data = data;
ea_obj->vio->free_func = free_func;
//FIXME: Save previous value
obj->seekable_prev = obj->seekable;
obj->seekable = (vio->seek != NULL);
}

View File

@ -129,6 +129,7 @@ struct _Ecore_Audio_Input
{
Eina_Bool paused; /**< Is the input paused? */
Eina_Bool seekable;
Eina_Bool seekable_prev;
Eo *output; /**< The output this input is connected to */