# HG changeset patch # User pontscho # Date 1043489045 0 # Node ID 731e5dc57436560644576c549a0aec3f5fc44903 # Parent ace727b8c2dc76bdee562cdbbf88b311dd0e24d0 - 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. diff -r ace727b8c2dc -r 731e5dc57436 Gui/interface.c --- a/Gui/interface.c Sat Jan 25 10:03:35 2003 +0000 +++ b/Gui/interface.c Sat Jan 25 10:04:05 2003 +0000 @@ -170,7 +170,6 @@ #ifdef HAVE_DXR3 if ( !gtkDXR3Device ) gtkDXR3Device=strdup( "/dev/em8300-0" ); #endif - fullscreen=gtkLoadFullscreen; if ( stream_cache_size != -1 ) { gtkCacheOn=1; gtkCacheSize=stream_cache_size; } if ( autosync && autosync != gtkAutoSync ) { gtkAutoSyncOn=1; gtkAutoSync=autosync; } @@ -189,7 +188,7 @@ case -2: mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_SKIN_SKINCFG_SkinCfgReadError,skinName ); exit( 0 ); } // --- initialize windows - if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) + if ( ( mplDrawBuffer = (unsigned char *)malloc( appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) { fprintf( stderr,MSGTR_NEMDB ); exit( 0 ); @@ -259,6 +258,7 @@ appMPlayer.subWindow.Mapped=wsMapped; } + if ( !fullscreen ) fullscreen=gtkLoadFullscreen; if ( fullscreen ) { mplFullScreen(); diff -r ace727b8c2dc -r 731e5dc57436 Gui/mplayer/gtk/fs.c --- a/Gui/mplayer/gtk/fs.c Sat Jan 25 10:03:35 2003 +0000 +++ b/Gui/mplayer/gtk/fs.c Sat Jan 25 10:04:05 2003 +0000 @@ -471,7 +471,7 @@ 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 -r ace727b8c2dc -r 731e5dc57436 Gui/mplayer/pb.c --- a/Gui/mplayer/pb.c Sat Jan 25 10:03:35 2003 +0000 +++ b/Gui/mplayer/pb.c Sat Jan 25 10:04:05 2003 +0000 @@ -39,11 +39,19 @@ 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 @@ 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 @@ wsVisibleWindow( &appMPlayer.barWindow,wsHideWindow ); return; } - wsMoveWindow( &appMPlayer.barWindow,0,appMPlayer.bar.x,mplPBLength ); + wsMoveWindow( &appMPlayer.barWindow,0,x,mplPBLength ); break; } diff -r ace727b8c2dc -r 731e5dc57436 mplayer.c --- a/mplayer.c Sat Jan 25 10:03:35 2003 +0000 +++ b/mplayer.c Sat Jan 25 10:04:05 2003 +0000 @@ -1275,6 +1275,7 @@ play_tree_t* entry; // Handle playlist current_module="handle_playlist"; + if ( stream->type != STREAMTYPE_PLAYLIST ) goto goto_next_file; mp_msg(MSGT_CPLAYER,MSGL_INFO,"Falling back on trying to parse playlist %s...\n",filename); stream_reset(stream); stream_seek(stream,stream->start_pos);