forked from enlightenment/efl
ecore_audio: Remember previous seekable state in vio_set
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
parent
de0d0dce2e
commit
108509c3f8
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue