asdfuser pushed a commit to branch master.
commit 108509c3f835ac184fe46567004ac987dedddc53
Author: Daniel Willmann <[email protected]>
Date: Mon Apr 29 18:23:59 2013 +0100
ecore_audio: Remember previous seekable state in vio_set
Signed-off-by: Daniel Willmann <[email protected]>
---
src/lib/ecore_audio/ecore_audio_obj_in.c | 5 ++++-
src/lib/ecore_audio/ecore_audio_private.h | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/lib/ecore_audio/ecore_audio_obj_in.c
b/src/lib/ecore_audio/ecore_audio_obj_in.c
index 9f80806..b85837b 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_in.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_in.c
@@ -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);
}
diff --git a/src/lib/ecore_audio/ecore_audio_private.h
b/src/lib/ecore_audio/ecore_audio_private.h
index ee809aa..f634bea 100644
--- a/src/lib/ecore_audio/ecore_audio_private.h
+++ b/src/lib/ecore_audio/ecore_audio_private.h
@@ -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 */
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr