[MPlayer-cvslog] r36530 - trunk/stream/stream_cdda.c
ib
subversion at mplayerhq.hu
Mon Dec 2 15:13:47 CET 2013
Author: ib
Date: Mon Dec 2 15:13:47 2013
New Revision: 36530
Log:
Add new stream control command STREAM_CTRL_GET_CURRENT_TITLE for CDDA.
Modified:
trunk/stream/stream_cdda.c
Modified: trunk/stream/stream_cdda.c
==============================================================================
--- trunk/stream/stream_cdda.c Mon Dec 2 14:53:03 2013 (r36529)
+++ trunk/stream/stream_cdda.c Mon Dec 2 15:13:47 2013 (r36530)
@@ -279,6 +279,13 @@ static int control(stream_t *stream, int
return STREAM_OK;
break;
}
+ case STREAM_CTRL_GET_CURRENT_TITLE:
+ {
+ int cur_track = get_track_by_sector(p, p->sector);
+ if (cur_track == -1) return STREAM_ERROR;
+ *(unsigned int *)arg = cur_track;
+ return STREAM_OK;
+ }
case STREAM_CTRL_GET_CURRENT_CHAPTER:
{
int start_track = get_track_by_sector(p, p->start_sector);
More information about the MPlayer-cvslog
mailing list