fixes a segfault when seeking on some mp3 only files

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7907 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2002-10-25 09:42:55 +00:00
parent 181233f35f
commit 009e5cff13
1 changed files with 1 additions and 1 deletions

View File

@ -2547,7 +2547,7 @@ if(rel_seek_secs || abs_seek_pos){
// Set OSD:
if(osd_level){
int len=((demuxer->movi_end-demuxer->movi_start)>>8);
if (len>0){
if (len>0 && sh_video){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=0;
vo_osd_progbar_value=(demuxer->filepos-demuxer->movi_start)/len;