[Mplayer-cvslog] CVS: main mplayer.c,1.603,1.604
pl
pl at mplayerhq.hu
Sat Oct 26 02:28:51 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv4433
Modified Files:
mplayer.c
Log Message:
avoids segfaults w.r.t to mp3 files handling:
hunk1 => mplayer -fps 42 foobar.mp3 (yeah it's a bit dumb but... ;)
hunk2 => mplayer *.mp3 + next file + volume increase
hunk3 => preventive bugfix
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.603
retrieving revision 1.604
diff -u -r1.603 -r1.604
--- mplayer.c 25 Oct 2002 09:42:55 -0000 1.603
+++ mplayer.c 26 Oct 2002 00:28:48 -0000 1.604
@@ -1367,7 +1367,7 @@
goto goto_next_file;
if(demuxer->file_format!=DEMUXER_TYPE_AVI) pts_from_bps=0; // it must be 0 for mpeg/asf!
-if(force_fps){
+if(force_fps && sh_video){
vo_fps = sh_video->fps=force_fps;
sh_video->frametime=1.0f/sh_video->fps;
mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_FPSforced,sh_video->fps,sh_video->frametime);
@@ -1970,7 +1970,7 @@
}
#ifdef USE_OSD
- if(osd_level){
+ if(osd_level && sh_video){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=OSD_VOLUME;
vo_osd_progbar_value=(mixer_getbothvolume()*256.0)/100.0;
@@ -2212,7 +2212,7 @@
vo_panscan = res > 1 ? 1 : res < 0 ? 0 : res;
video_out->control( VOCTRL_SET_PANSCAN,NULL );
#ifdef USE_OSD
- if(osd_level){
+ if(osd_level && sh_video){
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=OSD_PANSCAN;
vo_osd_progbar_value=vo_panscan*256;
More information about the MPlayer-cvslog
mailing list