1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

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

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;