there is no sh_video for audio only files

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16939 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2005-11-06 18:01:52 +00:00
parent 0abc2311fe
commit 4c0cf32f51
1 changed files with 2 additions and 1 deletions

View File

@ -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 */