# HG changeset patch # User ib # Date 1354198263 0 # Node ID cedb0ba2b5c67699451176b48b1f4df453e5dadd # Parent 5875084661d8c9ec75b03fd24575636baba2a2a0 Move the code to set guiInfo's Track, Chapter and Angle start values. Set them before checking whether there is any media opened, because with no media opened we clear the counters. diff -r 5875084661d8 -r cedb0ba2b5c6 gui/interface.c --- a/gui/interface.c Thu Nov 29 14:00:02 2012 +0000 +++ b/gui/interface.c Thu Nov 29 14:11:03 2012 +0000 @@ -789,6 +789,10 @@ filename = NULL; + guiInfo.Track = 1; + guiInfo.Chapter = 1; + guiInfo.Angle = 1; + if (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0)) { guiInfo.Track = 0; guiInfo.Chapter = 0; @@ -801,10 +805,6 @@ guiInfo.ElapsedTime = 0; guiInfo.Position = 0; - guiInfo.Track = 1; - guiInfo.Chapter = 1; - guiInfo.Angle = 1; - if (gtkShowVideoWindow) { guiInfo.VideoWindow = True; guiInfo.VideoWidth = guiApp.video.width;