[MPlayer-cvslog] r35640 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Sun Dec 9 17:49:03 CET 2012
Author: ib
Date: Sun Dec 9 17:49:03 2012
New Revision: 35640
Log:
Reset playlist to first item after playback has stopped.
This gives a playlist the same behaviour like playing a CD/VCD/DVD.
Reported by Hans-Dieter Kosch, hdkosch kabelbw de.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Sun Dec 9 15:49:11 2012 (r35639)
+++ trunk/gui/interface.c Sun Dec 9 17:49:03 2012 (r35640)
@@ -836,15 +836,22 @@ int gui(int what, void *data)
filename = NULL;
- if (!isPlaylistStreamtype)
guiInfo.Track = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1);
if (guiInfo.Chapter)
guiInfo.Chapter = 1;
if (guiInfo.Angle)
guiInfo.Angle = 1;
- if (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0))
+ if (isPlaylistStreamtype) {
+ if (!listMgr(PLAYLIST_ITEM_GET_CURR, 0))
uiUnsetFile();
+ else {
+ plItem *curr;
+
+ curr = listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0));
+ uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
+ }
+ }
guiInfo.ElapsedTime = 0;
guiInfo.Position = 0;
More information about the MPlayer-cvslog
mailing list