[MPlayer-cvslog] r37492 - in trunk/gui/ui: actions.c actions.h
ib
subversion at mplayerhq.hu
Mon Sep 7 16:23:00 CEST 2015
Author: ib
Date: Mon Sep 7 16:23:00 2015
New Revision: 37492
Log:
Add uiAbsSeek().
Allow to seek to an absolute position given in seconds.
Modified:
trunk/gui/ui/actions.c
trunk/gui/ui/actions.h
Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c Mon Sep 7 10:39:29 2015 (r37491)
+++ trunk/gui/ui/actions.c Mon Sep 7 16:23:00 2015 (r37492)
@@ -603,6 +603,19 @@ void uiState(void)
/**
* @brief Seek new playback position.
*
+ * The new position is an absolute one.
+ *
+ * @param sec playback time in seconds to position to
+ */
+void uiAbsSeek(float sec)
+{
+ rel_seek_secs = sec;
+ abs_seek_pos = SEEK_ABSOLUTE;
+}
+
+/**
+ * @brief Seek new playback position.
+ *
* The new position is a relative one.
*
* @param sec seconds to seek (either forward (> 0) or backward (< 0))
Modified: trunk/gui/ui/actions.h
==============================================================================
--- trunk/gui/ui/actions.h Mon Sep 7 10:39:29 2015 (r37491)
+++ trunk/gui/ui/actions.h Mon Sep 7 16:23:00 2015 (r37492)
@@ -21,6 +21,7 @@
extern int uiLoadPlay;
+void uiAbsSeek(float sec);
void uiChangeSkin(char *name);
void uiCurr(void);
void uiEvent(int ev, float param);
More information about the MPlayer-cvslog
mailing list