changeset 35418:cedb0ba2b5c6

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.
author ib
date Thu, 29 Nov 2012 14:11:03 +0000
parents 5875084661d8
children d86249ebbcca
files gui/interface.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;