diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-29 15:11:38 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-29 15:11:38 +0000 |
commit | 5960ddb8e5c295145d989c223b3f0029095a2311 (patch) | |
tree | 96ac4fbfc59762228fbaf6a277e6442949b78362 /mplayer.c | |
parent | da8ab92c7dfab98911c0ae25ba2e88e699f20300 (diff) | |
download | mpv-5960ddb8e5c295145d989c223b3f0029095a2311.tar.bz2 mpv-5960ddb8e5c295145d989c223b3f0029095a2311.tar.xz |
Use defines to give names to the different seek flags.
A better solution should be considered later, esp. for the many
broken demuxers that do not treat these flags correctly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25911 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2483,8 +2483,8 @@ static void edl_update(MPContext *mpctx) } -// style & 1 == 0 means seek relative to current position, == 1 means absolute -// style & 2 == 0 means amount in seconds, == 2 means fraction of file length +// style & SEEK_ABSOLUTE == 0 means seek relative to current position, == 1 means absolute +// style & SEEK_FACTOR == 0 means amount in seconds, == 2 means fraction of file length // return -1 if seek failed (non-seekable stream?), 0 otherwise static int seek(MPContext *mpctx, double amount, int style) { @@ -3626,7 +3626,7 @@ if(play_n_frames==0){ } if (seek_to_sec) { - seek(mpctx, seek_to_sec, 1); + seek(mpctx, seek_to_sec, SEEK_ABSOLUTE); end_at.pos += seek_to_sec; } @@ -3831,7 +3831,7 @@ if(step_sec>0) { if(mpctx->loop_times==1) mpctx->loop_times=-1; play_n_frames=play_n_frames_mf; mpctx->eof=0; - abs_seek_pos=1; rel_seek_secs=seek_to_sec; + abs_seek_pos=SEEK_ABSOLUTE; rel_seek_secs=seek_to_sec; loop_seek = 1; } |