[MPlayer-cvslog] r36533 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Mon Dec 2 15:43:24 CET 2013
Author: ib
Date: Mon Dec 2 15:43:24 2013
New Revision: 36533
Log:
Update track information at GUI_SET_STREAM for CDDA and VCD.
This is (only) necessary for playbacks that have been started
on the command line (specifying such as cdda://5 or vcd://2)
rather than using the GUI menus.
For TV/DVB (that don't have tracks) set it to a fixed value.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Mon Dec 2 15:38:08 2013 (r36532)
+++ trunk/gui/interface.c Mon Dec 2 15:43:24 2013 (r36533)
@@ -614,11 +614,15 @@ int gui(int what, void *data)
case STREAMTYPE_CDDA:
guiInfo.Tracks = 0;
stream_control(stream, STREAM_CTRL_GET_NUM_TITLES, &guiInfo.Tracks);
+ if (stream_control(stream, STREAM_CTRL_GET_CURRENT_TITLE, &guiInfo.Track) == STREAM_OK)
+ guiInfo.Track++;
break;
case STREAMTYPE_VCD:
guiInfo.Tracks = 0;
stream_control(stream, STREAM_CTRL_GET_NUM_TITLES, &guiInfo.Tracks);
+ if (stream_control(stream, STREAM_CTRL_GET_CURRENT_TITLE, &guiInfo.Track) == STREAM_OK)
+ guiInfo.Track++;
break;
case STREAMTYPE_DVD:
@@ -644,7 +648,7 @@ int gui(int what, void *data)
case STREAMTYPE_TV:
case STREAMTYPE_DVB:
- guiInfo.Tracks = 1;
+ guiInfo.Tracks = guiInfo.Track = 1;
break;
}
More information about the MPlayer-cvslog
mailing list