[MPlayer-cvslog] r35512 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Thu Nov 29 15:11:03 CET 2012


Author: ib
Date: Thu Nov 29 15:11:03 2012
New Revision: 35512

Log:
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.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Nov 29 15:00:02 2012	(r35511)
+++ trunk/gui/interface.c	Thu Nov 29 15:11:03 2012	(r35512)
@@ -789,6 +789,10 @@ int gui(int what, void *data)
 
             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 @@ int gui(int what, void *data)
             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;


More information about the MPlayer-cvslog mailing list