Mercurial > mplayer.hg
diff mplayer.c @ 7906:40aa6cf5a66b
fixes a segfault when seeking on some mp3 only files
author | pl |
---|---|
date | Fri, 25 Oct 2002 09:42:55 +0000 |
parents | aba9301ed3c4 |
children | bad21f499a9e |
line wrap: on
line diff
--- a/mplayer.c Fri Oct 25 09:42:41 2002 +0000 +++ b/mplayer.c Fri Oct 25 09:42:55 2002 +0000 @@ -2547,7 +2547,7 @@ // 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;