Mercurial > mplayer.hg
changeset 35374:8249c2131cd3
Rename uiGotoTheNext uiProcessNextInPlaylist.
This is a more descriptive (although very long) name for the variable.
author | ib |
---|---|
date | Sat, 24 Nov 2012 15:54:22 +0000 |
parents | a0ec74dae6b9 |
children | 15b6ae10180a |
files | gui/interface.c gui/ui/actions.c gui/ui/actions.h gui/win32/interface.c |
diffstat | 4 files changed, 15 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Fri Nov 23 21:47:31 2012 +0000 +++ b/gui/interface.c Sat Nov 24 15:54:22 2012 +0000 @@ -765,8 +765,8 @@ uiEventHandling(ivRedraw, 1); - if (!uiGotoTheNext && guiInfo.Playing) { - uiGotoTheNext = 1; + if (!uiProcessNextInPlaylist && guiInfo.Playing) { + uiProcessNextInPlaylist = 1; break; } @@ -886,7 +886,7 @@ } uiCurr(); // update filename - uiGotoTheNext = 1; + uiProcessNextInPlaylist = 1; if (enqueue) filename = NULL; // don't start playing
--- a/gui/ui/actions.c Fri Nov 23 21:47:31 2012 +0000 +++ b/gui/ui/actions.c Sat Nov 24 15:54:22 2012 +0000 @@ -38,7 +38,7 @@ #include "libvo/video_out.h" #include "mp_core.h" -int uiGotoTheNext = 1; +int uiProcessNextInPlaylist = 1; void uiFullScreen(void) { @@ -257,7 +257,7 @@ if (curr) { uiSetFileName(curr->path, curr->name, STREAMTYPE_FILE); - uiGotoTheNext = 0; + uiProcessNextInPlaylist = 0; break; } @@ -310,7 +310,7 @@ if (prev) { uiSetFileName(prev->path, prev->name, STREAMTYPE_FILE); - uiGotoTheNext = (guiInfo.Playing ? 0 : 1); + uiProcessNextInPlaylist = (guiInfo.Playing ? 0 : 1); guiInfo.Track--; break; } @@ -371,7 +371,7 @@ if (next) { uiSetFileName(next->path, next->name, STREAMTYPE_FILE); - uiGotoTheNext = (guiInfo.Playing ? 0 : 1); + uiProcessNextInPlaylist = (guiInfo.Playing ? 0 : 1); guiInfo.Track++; break; }
--- a/gui/ui/actions.h Fri Nov 23 21:47:31 2012 +0000 +++ b/gui/ui/actions.h Sat Nov 24 15:54:22 2012 +0000 @@ -23,7 +23,7 @@ #define SAME_STREAMTYPE (STREAMTYPE_DUMMY - 1) -extern int uiGotoTheNext; +extern int uiProcessNextInPlaylist; void uiAbsSeek(float sec); void uiChangeSkin(char *name);
--- a/gui/win32/interface.c Fri Nov 23 21:47:31 2012 +0000 +++ b/gui/win32/interface.c Sat Nov 24 15:54:22 2012 +0000 @@ -77,7 +77,7 @@ char *skinName = NULL; char *codecname = NULL; -int uiGotoTheNext = 1; +int uiProcessNextInPlaylist = 1; static gui_t *mygui = NULL; static int update_videowindow(void); static RECT old_rect; @@ -364,7 +364,7 @@ { guiInfo.NewPlay = GUI_FILE_NEW; update_playlistwindow(); - uiGotoTheNext = guiInfo.Playing? 0 : 1; + uiProcessNextInPlaylist = guiInfo.Playing? 0 : 1; gui(GUI_SET_STATE, (void *) GUI_STOP); gui(GUI_SET_STATE, (void *) GUI_PLAY); break; @@ -766,13 +766,13 @@ { guiInfo.sh_video = NULL; - if(!uiGotoTheNext && guiInfo.Playing) + if(!uiProcessNextInPlaylist && guiInfo.Playing) { - uiGotoTheNext = 1; + uiProcessNextInPlaylist = 1; break; } - if(uiGotoTheNext && guiInfo.Playing && + if(uiProcessNextInPlaylist && guiInfo.Playing && (mygui->playlist->current < (mygui->playlist->trackcount - 1)) && guiInfo.StreamType != STREAMTYPE_DVD && guiInfo.StreamType != STREAMTYPE_DVDNAV) @@ -781,7 +781,7 @@ if(movie_aspect >= 0) movie_aspect = -1; - uiGotoTheNext = 1; + uiProcessNextInPlaylist = 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 +864,7 @@ result = 1; } } - uiGotoTheNext = 1; + uiProcessNextInPlaylist = 1; if (result) {