Mercurial > mplayer.hg
diff stream/stream_cdda.c @ 36434:72438f81faab
Add new stream control command STREAM_CTRL_GET_CURRENT_TITLE for CDDA.
author | ib |
---|---|
date | Mon, 02 Dec 2013 14:13:47 +0000 |
parents | 3389262720da |
children | 2d41b475a7b4 |
line wrap: on
line diff
--- a/stream/stream_cdda.c Mon Dec 02 13:53:03 2013 +0000 +++ b/stream/stream_cdda.c Mon Dec 02 14:13:47 2013 +0000 @@ -279,6 +279,13 @@ 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);