summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-23 13:26:56 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-23 13:26:56 +0000
commit924836a40b960bf9947f5515d398f9fe6c54b545 (patch)
tree5749a53cc8029c3a882ae960267dc76ff9898915 /mplayer.c
parent471842ba74a770e35086d93cbf2ecf6074a2f1fd (diff)
downloadmpv-924836a40b960bf9947f5515d398f9fe6c54b545.tar.bz2
mpv-924836a40b960bf9947f5515d398f9fe6c54b545.tar.xz
Fix audio only absolute seeking
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5796 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 0ea4c422fc..145849e715 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2218,8 +2218,9 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
if(abs) {
abs_seek_pos = 3;
- osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
- rel_seek_secs = v;
+ if(sh_video)
+ osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
+ rel_seek_secs = v/100.0;
}
else {
rel_seek_secs+= v;