# HG changeset patch # User pontscho # Date 1038510110 0 # Node ID 4c23944315d672cb06d5022a71d9f38df15e7ded # Parent 2dcdd2ae333feee6a5f8b6b3b6f607151fd746e7 - add R¸«ädiger Kuhlmann's patch - fix one 10l bug diff -r 2dcdd2ae333f -r 4c23944315d6 Gui/mplayer/mw.c --- a/Gui/mplayer/mw.c Thu Nov 28 16:15:13 2002 +0000 +++ b/Gui/mplayer/mw.c Thu Nov 28 19:01:50 2002 +0000 @@ -21,6 +21,11 @@ #include "../../libvo/sub.h" #include "../../mplayer.h" +#include "../../libmpdemux/demuxer.h" +#include "../../libmpdemux/stheader.h" +#include "../../codec-cfg.h" + + #include "play.h" #include "widgets.h" @@ -118,6 +123,10 @@ case 'b': sprintf( tmp,"%3.2f%%",guiIntfStruct.Balance ); strcat( trbuf,tmp ); break; case 'B': sprintf( tmp,"%3.1f",guiIntfStruct.Balance ); strcat( trbuf,tmp ); break; case 'd': sprintf( tmp,"%d",guiIntfStruct.FrameDrop ); strcat( trbuf,tmp ); break; + case 'x': sprintf( tmp,"%d",guiIntfStruct.MovieWidth ); strcat( trbuf,tmp ); break; + case 'y': sprintf( tmp,"%d",guiIntfStruct.MovieHeight ); strcat( trbuf,tmp ); break; + case 'C': sprintf( tmp,"%s", guiIntfStruct.sh_video? ((sh_video_t *)guiIntfStruct.sh_video)->codec->name : ""); + strcat( trbuf,tmp ); break; case 's': if ( guiIntfStruct.Playing == 0 ) strcat( trbuf,"s" ); break; case 'l': if ( guiIntfStruct.Playing == 1 ) strcat( trbuf,"p" ); break; case 'e': if ( guiIntfStruct.Playing == 2 ) strcat( trbuf,"e" ); break; diff -r 2dcdd2ae333f -r 4c23944315d6 Gui/skin/skin.c --- a/Gui/skin/skin.c Thu Nov 28 16:15:13 2002 +0000 +++ b/Gui/skin/skin.c Thu Nov 28 19:01:50 2002 +0000 @@ -10,6 +10,7 @@ #include "../../config.h" #include "../../mp_msg.h" #include "../../help_mp.h" +#include "../mplayer/widgets.h" listItems * skinAppMPlayer = &appMPlayer; @@ -25,11 +26,14 @@ void ERRORMESSAGE( const char * format, ... ) { char p[512]; + char tmp[512]; va_list ap; va_start( ap,format ); vsnprintf( p,512,format,ap ); va_end( ap ); mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_SKIN_ERRORMESSAGE,linenumber,p ); + snprintf( tmp,512,MSGTR_SKIN_ERRORMESSAGE,linenumber,p ); + gtkMessageBox( GTK_MB_FATAL,tmp ); } #define CHECKDEFLIST( str ) \ diff -r 2dcdd2ae333f -r 4c23944315d6 mplayer.c --- a/mplayer.c Thu Nov 28 16:15:13 2002 +0000 +++ b/mplayer.c Thu Nov 28 19:01:50 2002 +0000 @@ -2674,6 +2674,7 @@ } if ( sh_video ) guiIntfStruct.TimeSec=d_video->pts; else if ( sh_audio ) guiIntfStruct.TimeSec=sh_audio->delay; + guiIntfStruct.LengthInSec=demuxer_get_time_length(demuxer); guiGetEvent( guiReDraw,NULL ); guiGetEvent( guiSetVolume,NULL ); if(guiIntfStruct.Playing==0) break; // STOP