Mercurial > mplayer.hg
diff stream/stream_vcd.c @ 34386:206264c532f5
Add new stream control command STREAM_CTRL_GET_NUM_TITLES.
This provides the total number of titles (aka tracks) of CDs / VCDs / DVDs.
Additionally, add a titles property to the get_property slave command.
author | ib |
---|---|
date | Sat, 31 Dec 2011 12:20:08 +0000 |
parents | 045110c125c6 |
children | b5abdfe9bc61 |
line wrap: on
line diff
--- a/stream/stream_vcd.c Thu Dec 29 19:42:58 2011 +0000 +++ b/stream/stream_vcd.c Sat Dec 31 12:20:08 2011 +0000 @@ -92,6 +92,7 @@ static int control(stream_t *stream, int cmd, void *arg) { struct stream_priv_s *p = stream->priv; switch(cmd) { + case STREAM_CTRL_GET_NUM_TITLES: case STREAM_CTRL_GET_NUM_CHAPTERS: { mp_vcd_priv_t *vcd = vcd_read_toc(stream->fd);