Mercurial > mplayer.hg
comparison gui/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 | 3a9048421524 |
children | f42cc2361ee4 |
comparison
equal
deleted
inserted
replaced
35429:3a9048421524 | 35430:2d55540614a9 |
---|---|
56 #ifdef CONFIG_DVDREAD | 56 #ifdef CONFIG_DVDREAD |
57 #include "stream/stream_dvd.h" | 57 #include "stream/stream_dvd.h" |
58 #endif | 58 #endif |
59 | 59 |
60 guiInterface_t guiInfo = { | 60 guiInterface_t guiInfo = { |
61 .StreamType = STREAMTYPE_DUMMY, | 61 .StreamType = STREAMTYPE_DUMMY, |
62 .Balance = 50.0f | 62 .Balance = 50.0f, |
63 .PlaylistNext = 1 | |
63 }; | 64 }; |
64 | 65 |
65 static int initialized; | 66 static int initialized; |
66 | 67 |
67 /* MPlayer -> GUI */ | 68 /* MPlayer -> GUI */ |
764 | 765 |
765 guiInfo.sh_video = NULL; | 766 guiInfo.sh_video = NULL; |
766 | 767 |
767 uiEventHandling(ivRedraw, 1); | 768 uiEventHandling(ivRedraw, 1); |
768 | 769 |
769 if (!uiProcessNextInPlaylist && guiInfo.Playing) { | 770 if (!guiInfo.PlaylistNext && guiInfo.Playing) { |
770 uiProcessNextInPlaylist = 1; | 771 guiInfo.PlaylistNext = 1; |
771 break; | 772 break; |
772 } | 773 } |
773 | 774 |
774 if (guiInfo.StreamType == STREAMTYPE_CDDA) { | 775 if (guiInfo.StreamType == STREAMTYPE_CDDA) { |
775 uiNext(); | 776 uiNext(); |
864 if (add_to_gui_playlist(filename, PLAYLIST_ITEM_APPEND)) | 865 if (add_to_gui_playlist(filename, PLAYLIST_ITEM_APPEND)) |
865 result = 1; | 866 result = 1; |
866 } | 867 } |
867 | 868 |
868 uiCurr(); // update filename | 869 uiCurr(); // update filename |
869 uiProcessNextInPlaylist = 1; | 870 guiInfo.PlaylistNext = 1; |
870 | 871 |
871 if (enqueue) | 872 if (enqueue) |
872 filename = NULL; // don't start playing | 873 filename = NULL; // don't start playing |
873 | 874 |
874 if (result) | 875 if (result) |