changeset 7906:40aa6cf5a66b

fixes a segfault when seeking on some mp3 only files
author pl
date Fri, 25 Oct 2002 09:42:55 +0000
parents b062996d9794
children 4979eeaf0564
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;