# HG changeset patch # User ib # Date 1355143780 0 # Node ID 14e36699a6e7e1789060b5d3a410b16e8e9d1b53 # Parent 59361080b09e9b0e22521a5bdc3182ba96e73482 Relocate code to set Track, Chapter and Angle start values. Because we're handling playlist playback (isPlaylistStreamtype) since r35512 separately now, it's clearer that way. diff -r 59361080b09e -r 14e36699a6e7 gui/interface.c --- a/gui/interface.c Mon Dec 10 12:46:56 2012 +0000 +++ b/gui/interface.c Mon Dec 10 12:49:40 2012 +0000 @@ -835,13 +835,6 @@ filename = NULL; - guiInfo.Track = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1); - - if (guiInfo.Chapter) - guiInfo.Chapter = 1; - if (guiInfo.Angle) - guiInfo.Angle = 1; - if (isPlaylistStreamtype) { plItem *curr = listMgr(PLAYLIST_ITEM_GET_CURR, 0); @@ -852,6 +845,13 @@ uiSetFile(curr->path, curr->name, STREAMTYPE_FILE); guiInfo.Track = 1; } + } else if (guiInfo.Playing) { + guiInfo.Track = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1); + + if (guiInfo.Chapter) + guiInfo.Chapter = 1; + if (guiInfo.Angle) + guiInfo.Angle = 1; } guiInfo.ElapsedTime = 0;