summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-06 18:01:52 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-06 18:01:52 +0000
commit4c0cf32f5189473e1efe1538e2d8434d29d1c35d (patch)
treedf5805a6dc009cacab7d816a5dabc52f19ec3669 /mplayer.c
parent0abc2311feba23ced123ce1795a5ac815f823d8c (diff)
downloadmpv-4c0cf32f5189473e1efe1538e2d8434d29d1c35d.tar.bz2
mpv-4c0cf32f5189473e1efe1538e2d8434d29d1c35d.tar.xz
there is no sh_video for audio only files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16939 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 6f71845f2c..61a37393ef 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2859,7 +2859,8 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
case MP_CMD_SEEK : {
float v;
int abs;
- osd_show_percentage = sh_video->fps;
+ if(sh_video)
+ osd_show_percentage = sh_video->fps;
v = cmd->args[0].v.f;
abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
if(abs==2) { /* Absolute seek to a specific timestamp in seconds */