# HG changeset patch # User ib # Date 1355071743 0 # Node ID cd2c85083fdd18d42bc69e7ee4ffc44e293e0682 # Parent d83d2bd5f36588b9774e59e15483aef0a3f4d0b6 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. diff -r d83d2bd5f365 -r cd2c85083fdd gui/interface.c --- a/gui/interface.c Sun Dec 09 14:49:11 2012 +0000 +++ b/gui/interface.c Sun Dec 09 16:49:03 2012 +0000 @@ -836,15 +836,22 @@ 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;