changeset 8305:4c23944315d6

- add R¸«ädiger Kuhlmann's <mplayer-list-UGa6JdjLujS2@ruediger-kuhlmann.de> patch - fix one 10l bug
author pontscho
date Thu, 28 Nov 2002 19:01:50 +0000
parents 2dcdd2ae333f
children a6bcad7b2c51
files Gui/mplayer/mw.c Gui/skin/skin.c mplayer.c
diffstat 3 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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 ) \
--- 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