Mercurial > mplayer.hg
diff gui/win32/interface.c @ 35430:2d55540614a9
Move uiProcessNextInPlaylist to the guiInfo structure.
It's an information for GUI control and need not be a
separate global variable.
Additionally, rename it PlaylistNext to shorten the name.
author | ib |
---|---|
date | Fri, 30 Nov 2012 11:40:35 +0000 |
parents | 02006c5b3b30 |
children | 20c90da2ba0d |
line wrap: on
line diff
--- a/gui/win32/interface.c Fri Nov 30 11:14:30 2012 +0000 +++ b/gui/win32/interface.c Fri Nov 30 11:40:35 2012 +0000 @@ -77,7 +77,6 @@ char *skinName = NULL; char *codecname = NULL; -int uiProcessNextInPlaylist = 1; static gui_t *mygui = NULL; static int update_videowindow(void); static RECT old_rect; @@ -364,7 +363,7 @@ { guiInfo.NewPlay = GUI_FILE_NEW; update_playlistwindow(); - uiProcessNextInPlaylist = guiInfo.Playing? 0 : 1; + guiInfo.PlaylistNext = guiInfo.Playing? 0 : 1; gui(GUI_SET_STATE, (void *) GUI_STOP); gui(GUI_SET_STATE, (void *) GUI_PLAY); break; @@ -766,13 +765,13 @@ { guiInfo.sh_video = NULL; - if(!uiProcessNextInPlaylist && guiInfo.Playing) + if(!guiInfo.PlaylistNext && guiInfo.Playing) { - uiProcessNextInPlaylist = 1; + guiInfo.PlaylistNext = 1; break; } - if(uiProcessNextInPlaylist && guiInfo.Playing && + if(guiInfo.PlaylistNext && guiInfo.Playing && (mygui->playlist->current < (mygui->playlist->trackcount - 1)) && guiInfo.StreamType != STREAMTYPE_DVD && guiInfo.StreamType != STREAMTYPE_DVDNAV) @@ -781,7 +780,7 @@ if(movie_aspect >= 0) movie_aspect = -1; - uiProcessNextInPlaylist = 1; + guiInfo.PlaylistNext = 1; guiInfo.NewPlay = GUI_FILE_NEW; uiSetFileName(NULL, mygui->playlist->tracks[(mygui->playlist->current)++]->filename, STREAMTYPE_FILE); //sprintf(guiInfo.Filename, mygui->playlist->tracks[(mygui->playlist->current)++]->filename); @@ -864,7 +863,7 @@ result = 1; } } - uiProcessNextInPlaylist = 1; + guiInfo.PlaylistNext = 1; if (result) {