summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-25 09:42:55 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-25 09:42:55 +0000
commit009e5cff13498e1da95fb4d43b207a91bafe8d53 (patch)
tree38f475635bc2001b5924d866aab3a1238f7d1755 /mplayer.c
parent181233f35f41575a56e5eb091bd6426be957d8c3 (diff)
downloadmpv-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 84f1e30f47..ba567aa1a8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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;