changeset 16938:2099e842ffb0

there is no sh_video for audio only files
author faust3
date Sun, 06 Nov 2005 18:01:52 +0000
parents 4d340b1aeed4
children 45a58caf19fb
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Nov 06 17:48:26 2005 +0000
+++ b/mplayer.c	Sun Nov 06 18:01:52 2005 +0000
@@ -2859,7 +2859,8 @@
     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 */