comparison gui/interface.c @ 35467:364387ae95f4

Fix bug with stop button and playlist. Although the current file was stopped and its information still displayed, play would skip to next file in list. Now, the file stopped can be resumed.
author ib
date Sun, 02 Dec 2012 15:56:19 +0000
parents e671bb33230f
children 047fc4746236
comparison
equal deleted inserted replaced
35466:0583b12e11d7 35467:364387ae95f4
326 mixer_t *mixer = NULL; 326 mixer_t *mixer = NULL;
327 stream_t *stream; 327 stream_t *stream;
328 #ifdef CONFIG_DVDREAD 328 #ifdef CONFIG_DVDREAD
329 dvd_priv_t *dvd; 329 dvd_priv_t *dvd;
330 #endif 330 #endif
331 plItem *next; 331 plItem *next = NULL;
332 int msg, state; 332 int msg, state;
333 333
334 if (guiInfo.mpcontext) 334 if (guiInfo.mpcontext)
335 mixer = mpctx_get_mixer(guiInfo.mpcontext); 335 mixer = mpctx_get_mixer(guiInfo.mpcontext);
336 336
786 786
787 if (guiInfo.Playing) 787 if (guiInfo.Playing)
788 break; 788 break;
789 } 789 }
790 790
791 if (guiInfo.Playing)
791 next = listMgr(PLAYLIST_ITEM_GET_NEXT, 0); 792 next = listMgr(PLAYLIST_ITEM_GET_NEXT, 0);
792 793
793 if (guiInfo.Playing && next) { 794 if (guiInfo.Playing && next) {
794 uiSetFile(next->path, next->name, STREAMTYPE_FILE); 795 uiSetFile(next->path, next->name, STREAMTYPE_FILE);
795 guiInfo.NewPlay = GUI_FILE_NEW; 796 guiInfo.NewPlay = GUI_FILE_NEW;