Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_media.c ewl_media.h
Log Message:
Block seeking to prevent recursion on the value change.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_media.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_media.c 16 Jul 2004 23:48:48 -0000 1.5
+++ ewl_media.c 17 Jul 2004 00:03:30 -0000 1.6
@@ -149,7 +149,7 @@
DENTER_FUNCTION(DLEVEL_STABLE)
DCHECK_PARAM_PTR_RET("m", m, 0);
- if (m->video)
+ if (m->video && !m->block_seek)
seekable = emotion_object_seekable_get(m->video);
DRETURN_INT(seekable, DLEVEL_STABLE);
@@ -184,8 +184,11 @@
DENTER_FUNCTION(DLEVEL_STABLE)
DCHECK_PARAM_PTR("m", m);
- if (m->video)
- emotion_object_position_set(m->video, p);
+ if (m->video && ewl_media_seekable_get(m)) {
+ m->block_seek = 1;
+ emotion_object_position_set(m->video, p);
+ m->block_seek = 0;
+ }
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -344,7 +347,9 @@
static void ewl_media_update_timer_cb(void *data, Evas_Object *obj, void *event_info)
{
Ewl_Widget *m = (Ewl_Widget *)data;
+ EWL_MEDIA(m)->block_seek = 1;
ewl_callback_call(m, EWL_CALLBACK_VALUE_CHANGED);
+ EWL_MEDIA(m)->block_seek = 0;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_media.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_media.h 16 Jul 2004 00:26:13 -0000 1.3
+++ ewl_media.h 17 Jul 2004 00:03:30 -0000 1.4
@@ -29,6 +29,7 @@
Ewl_Widget widget; /**< Inherit from Ewl_Widget */
Evas_Object *video; /**< Emotion does the actual work */
char *media; /**< Path to the media file */
+ int block_seek; /**< Temporarily prevent seeking */
};
Ewl_Widget *ewl_media_new(char *media);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs