Mercurial > mplayer.hg
changeset 35431:20c90da2ba0d
Use symbolic constants to set abs_seek_pos.
author | ib |
---|---|
date | Fri, 30 Nov 2012 12:17:29 +0000 |
parents | 2d55540614a9 |
children | a545e4994460 |
files | gui/ui/actions.c gui/win32/interface.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/actions.c Fri Nov 30 11:40:35 2012 +0000 +++ b/gui/ui/actions.c Fri Nov 30 12:17:29 2012 +0000 @@ -35,6 +35,7 @@ #include "config.h" #include "help_mp.h" #include "input/input.h" +#include "libmpdemux/demuxer.h" #include "libmpcodecs/vd.h" #include "libvo/video_out.h" #include "mp_core.h" @@ -115,7 +116,7 @@ void uiAbsSeek(float percent) { rel_seek_secs = percent / 100.0; - abs_seek_pos = 3; + abs_seek_pos = SEEK_ABSOLUTE | SEEK_FACTOR; } void uiChangeSkin(char *name)
--- a/gui/win32/interface.c Fri Nov 30 11:40:35 2012 +0000 +++ b/gui/win32/interface.c Fri Nov 30 12:17:29 2012 +0000 @@ -296,7 +296,7 @@ case evSetMoviePosition: { rel_seek_secs = guiInfo.Position / 100.0f; - abs_seek_pos = 3; + abs_seek_pos = SEEK_ABSOLUTE | SEEK_FACTOR; break; } case evForward10sec: