summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2008-09-26 23:17:57 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2008-09-26 23:17:57 +0000
commitaa3aac7dbfd67d5184d41fa73b581df337bcc7ef (patch)
treec7a2a65a01bb4fdb05b6c0d2b4e4e9a173baa716 /legacy/emotion/src/lib/emotion_smart.c
parent2acd11a39ec554ef390bb840175a11e108732379 (diff)
Fix position reporting.
Always call pos_get() and also fix these on xine and gstreamer, we should query the current position and do not trust cached value. For instance, when no video is present, no handoff/frame-decoded is called so no cache is updated. SVN revision: 36271
Diffstat (limited to 'legacy/emotion/src/lib/emotion_smart.c')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index f77ce76fb5..f932962e17 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -319,6 +319,8 @@ emotion_object_position_get(Evas_Object *obj)
319 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0.0); 319 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0.0);
320 if (!sd->module) return 0.0; 320 if (!sd->module) return 0.0;
321 if (!sd->video) return 0.0; 321 if (!sd->video) return 0.0;
322 if (!sd->module->pos_get) return 0.0;
323 sd->pos = sd->module->pos_get(sd->video);
322 return sd->pos; 324 return sd->pos;
323} 325}
324 326