summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-25 10:04:05 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-25 10:04:05 +0000
commit42d3010880f8df5965b715bb31a471357b4ac2b6 (patch)
tree772e8c7455ba104053ca42efb316bfe819b28932 /Gui/mplayer
parent8e2ccdff36356c7705f20b142f0776f69639c0ea (diff)
downloadmpv-42d3010880f8df5965b715bb31a471357b4ac2b6.tar.bz2
mpv-42d3010880f8df5965b715bb31a471357b4ac2b6.tar.xz
- fix -fs
- set sub_fps to null for new files - fix one sig11, if you play vcd, and the disc is not vcd, playtree is dead - add playbar vertical position support - etc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9089 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer')
-rw-r--r--Gui/mplayer/gtk/fs.c2
-rw-r--r--Gui/mplayer/pb.c16
2 files changed, 13 insertions, 5 deletions
diff --git a/Gui/mplayer/gtk/fs.c b/Gui/mplayer/gtk/fs.c
index 98d9c219cb..427445c0a6 100644
--- a/Gui/mplayer/gtk/fs.c
+++ b/Gui/mplayer/gtk/fs.c
@@ -471,7 +471,7 @@ void fs_Ok_released( GtkButton * button,gpointer user_data )
case fsVideoSelector:
guiSetDF( guiIntfStruct.Filename,fsSelectedDirectory,fsSelectedFile );
guiIntfStruct.StreamType=STREAMTYPE_FILE;
- guiIntfStruct.FilenameChanged=1;
+ guiIntfStruct.FilenameChanged=1; sub_fps=0;
gfree( (void **)&guiIntfStruct.AudioFile );
gfree( (void **)&guiIntfStruct.Subtitlename );
fs_PersistantHistory( fsSelectedDirectory ); //totem, write into history
diff --git a/Gui/mplayer/pb.c b/Gui/mplayer/pb.c
index 720727e046..e87a82f7b3 100644
--- a/Gui/mplayer/pb.c
+++ b/Gui/mplayer/pb.c
@@ -39,11 +39,19 @@ int mplPBFade = 0;
void mplPBDraw( void )
{
+ int x;
+
if ( !appMPlayer.subWindow.isFullScreen ) return;
if ( !mplPBVisible || !appMPlayer.barIsPresent ) return;
- appMPlayer.bar.x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2;
-
+// appMPlayer.bar.x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2;
+ switch( appMPlayer.bar.x )
+ {
+ case -1: x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2; break;
+ case -2: x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ); break;
+ default: x=appMPlayer.bar.x;
+ }
+
switch ( mplPBFade )
{
case 1: // fade in
@@ -54,7 +62,7 @@ void mplPBDraw( void )
mplPBFade=0;
vo_mouse_autohide=0;
}
- wsMoveWindow( &appMPlayer.barWindow,0,appMPlayer.bar.x,mplPBLength );
+ wsMoveWindow( &appMPlayer.barWindow,0,x,mplPBLength );
break;
case 2: // fade out
mplPBLength+=10;
@@ -66,7 +74,7 @@ void mplPBDraw( void )
wsVisibleWindow( &appMPlayer.barWindow,wsHideWindow );
return;
}
- wsMoveWindow( &appMPlayer.barWindow,0,appMPlayer.bar.x,mplPBLength );
+ wsMoveWindow( &appMPlayer.barWindow,0,x,mplPBLength );
break;
}