summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorDavide Andreoli <dave@gurumeditation.it>2012-03-05 09:33:05 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-03-05 09:33:05 +0000
commitcd00891529cab4ef46287696aa881336d58a24b4 (patch)
treeb127f0b4493141f47527a20fe7176ce727e2c9cc /legacy/emotion/src/lib/emotion_smart.c
parentf5bfcc675be99363247a524e2a8236c810ddd02d (diff)
From: Davide Andreoli <dave@gurumeditation.it>
Subject: [E-devel] Emotion buffer size patch Hi, here is a patch for emotion, it add a new function to retrive the status of the buffer while playing online stream. It is implemented only for the gstreamer backend, the xine one do not play at all here. What about the generic one? (xine does play - i implameneted this with the xine module, and generic is given a func that always returns 1.0 for now). SVN revision: 68684
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 4b37879b58..141137442f 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -761,6 +761,18 @@ emotion_object_position_get(const Evas_Object *obj)
761 return sd->pos; 761 return sd->pos;
762} 762}
763 763
764EAPI double
765emotion_object_buffer_size_get(const Evas_Object *obj)
766{
767 Smart_Data *sd;
768
769 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 1.0);
770 if (!sd->module) return 1.0;
771 if (!sd->video_data) return 1.0;
772 if (!sd->module->buffer_size_get) return 1.0;
773 return sd->module->buffer_size_get(sd->video_data);
774}
775
764EAPI Eina_Bool 776EAPI Eina_Bool
765emotion_object_seekable_get(const Evas_Object *obj) 777emotion_object_seekable_get(const Evas_Object *obj)
766{ 778{