diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-25 09:42:55 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-25 09:42:55 +0000 |
commit | 009e5cff13498e1da95fb4d43b207a91bafe8d53 (patch) | |
tree | 38f475635bc2001b5924d866aab3a1238f7d1755 /mplayer.c | |
parent | 181233f35f41575a56e5eb091bd6426be957d8c3 (diff) | |
download | mpv-009e5cff13498e1da95fb4d43b207a91bafe8d53.tar.bz2 mpv-009e5cff13498e1da95fb4d43b207a91bafe8d53.tar.xz |
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
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |