summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-11 01:21:12 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-11 01:21:12 +0000
commit15dc6ef3f76c8a8060ad9cfc36fe34a33f241aba (patch)
tree3b93cb826c911fe5cff2f9bb98b6369c275119ce /mplayer.c
parentd9b33edbba28e29aeb94b7f4acae099175302a16 (diff)
downloadmpv-15dc6ef3f76c8a8060ad9cfc36fe34a33f241aba.tar.bz2
mpv-15dc6ef3f76c8a8060ad9cfc36fe34a33f241aba.tar.xz
- fix three submenu bug
- audio/video track hiding - normal/double/fullscreen handling - dvd audio channel setting bug - fix file/url/vcd/dvd playing - fix variables initialization - some small bug fix - applied some patch from RĂ¼diger Kuhlmann git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8424 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/mplayer.c b/mplayer.c
index 238c078f88..1b64639104 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -868,8 +868,8 @@ if(!use_stdin && !slave_mode){
// =================== GUI idle loop (STOP state) ===========================
#ifdef HAVE_NEW_GUI
if ( use_gui ) {
-
- guiGetEvent( guiReDrawSubWindow,0 );
+ file_format=DEMUXER_TYPE_UNKNOWN;
+ guiGetEvent( guiSetDefaults,0 );
while ( guiIntfStruct.Playing != 1 )
{
mp_cmd_t* cmd;
@@ -878,14 +878,8 @@ if(!use_stdin && !slave_mode){
guiGetEvent( guiReDraw,NULL );
if ( (cmd = mp_input_get_cmd(0,0)) != NULL) guiGetEvent( guiIEvent,(char *)cmd->id );
}
-
- guiGetEvent( guiSetDefaults,NULL );
-
- if ( ( guiIntfStruct.FilenameChanged || !filename )
-//#ifdef USE_DVDREAD
-// && ( guiIntfStruct.StreamType != STREAMTYPE_DVD )
-//#endif
- )
+ guiGetEvent( guiSetParameters,NULL );
+ if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM )
{
play_tree_t * entry = play_tree_new();
play_tree_add_file( entry,guiIntfStruct.Filename );
@@ -905,7 +899,6 @@ if(!use_stdin && !slave_mode){
filename = play_tree_iter_get_file(playtree_iter,1);
}
}
- guiIntfStruct.FilenameChanged=0;
}
}
#endif
@@ -951,6 +944,10 @@ if(!use_stdin && !slave_mode){
}
inited_flags|=INITED_STREAM;
+#ifdef HAVE_NEW_GUI
+ if ( use_gui ) guiGetEvent( guiSetStream,(char *)stream );
+#endif
+
if(stream->type == STREAMTYPE_PLAYLIST) {
play_tree_t* entry;
// Handle playlist
@@ -1348,8 +1345,6 @@ fflush(stdout);
#ifdef HAVE_NEW_GUI
if ( use_gui )
{
- guiGetEvent( guiSetStream,(char *)stream );
- guiGetEvent( guiSetFileName,filename );
if ( sh_audio ) guiIntfStruct.AudioType=sh_audio->channels; else guiIntfStruct.AudioType=0;
if ( !sh_video && sh_audio ) guiGetEvent( guiSetAudioOnly,(char *)1 ); else guiGetEvent( guiSetAudioOnly,(char *)0 );
guiGetEvent( guiSetFileFormat,(char *)demuxer->file_format );
@@ -2700,12 +2695,11 @@ if(rel_seek_secs || abs_seek_pos){
guiGetEvent( guiSetVolume,NULL );
if(guiIntfStruct.Playing==0) break; // STOP
if(guiIntfStruct.Playing==2) osd_function=OSD_PAUSE;
- if ( guiIntfStruct.DiskChanged || guiIntfStruct.FilenameChanged ) goto goto_next_file;
+ if ( guiIntfStruct.DiskChanged || guiIntfStruct.NewPlay ) goto goto_next_file;
#ifdef USE_DVDREAD
if ( stream->type == STREAMTYPE_DVD )
{
dvd_priv_t * dvdp = stream->priv;
- /*guiIntfStruct.DVD.current_chapter=dvdp->cur_cell + 1;*/
guiIntfStruct.DVD.current_chapter=dvd_chapter_from_cell(dvdp,guiIntfStruct.DVD.current_title-1, dvdp->cur_cell)+1;
}
#endif