summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gui/mplayer/mw.c9
-rw-r--r--Gui/skin/skin.c4
-rw-r--r--mplayer.c1
3 files changed, 14 insertions, 0 deletions
diff --git a/Gui/mplayer/mw.c b/Gui/mplayer/mw.c
index 678685d4c4..fc665761a2 100644
--- a/Gui/mplayer/mw.c
+++ b/Gui/mplayer/mw.c
@@ -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 @@ calclengthmmmmss:
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 --git a/Gui/skin/skin.c b/Gui/skin/skin.c
index e7d1e21ec3..9951d9ed23 100644
--- a/Gui/skin/skin.c
+++ b/Gui/skin/skin.c
@@ -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 @@ unsigned char winList[32] = "";
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 --git a/mplayer.c b/mplayer.c
index 65db0cee5a..087172101f 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2674,6 +2674,7 @@ if(rel_seek_secs || abs_seek_pos){
}
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