[MPlayer-cvslog] r35264 - in trunk/gui: interface.c win32/interface.c
ib
subversion at mplayerhq.hu
Sun Oct 21 17:00:49 CEST 2012
Author: ib
Date: Sun Oct 21 17:00:48 2012
New Revision: 35264
Log:
Set guiInfo.Track after the stream is open.
This is only necessary if the track hasn't been set by the GUI itself
(but from a command line option, for example) in order to be able to
show the track number in the GUI's menus.
The GUI didn't show it in that case so far.
Modified:
trunk/gui/interface.c
trunk/gui/win32/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Sun Oct 21 16:56:50 2012 (r35263)
+++ trunk/gui/interface.c Sun Oct 21 17:00:48 2012 (r35264)
@@ -622,6 +622,9 @@ int gui(int what, void *data)
stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiInfo.Chapters);
guiInfo.Angles = 0;
stream_control(stream, STREAM_CTRL_GET_NUM_ANGLES, &guiInfo.Angles);
+ guiInfo.Track = 0;
+ stream_control(stream, STREAM_CTRL_GET_CURRENT_TITLE, &guiInfo.Track);
+ guiInfo.Track++;
// guiInfo.Chapter will be set by mplayer
guiInfo.Angle = 1;
stream_control(stream, STREAM_CTRL_GET_ANGLE, &guiInfo.Angle);
Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c Sun Oct 21 16:56:50 2012 (r35263)
+++ trunk/gui/win32/interface.c Sun Oct 21 17:00:48 2012 (r35264)
@@ -665,6 +665,9 @@ int gui(int what, void *data)
stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiInfo.Chapters);
guiInfo.Angles = 0;
stream_control(stream, STREAM_CTRL_GET_NUM_ANGLES, &guiInfo.Angles);
+ guiInfo.Track = 0;
+ stream_control(stream, STREAM_CTRL_GET_CURRENT_TITLE, &guiInfo.Track);
+ guiInfo.Track++;
// guiInfo.Chapter will be set by mplayer
guiInfo.Angle = 1;
stream_control(stream, STREAM_CTRL_GET_ANGLE, &guiInfo.Angle);
More information about the MPlayer-cvslog
mailing list