From 98f15b645ff1d10a914c004d0b076916a5f1f094 Mon Sep 17 00:00:00 2001 From: mplayer-svn Date: Sat, 31 Dec 2011 12:20:08 +0000 Subject: stream: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34474 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: ib --- stream/stream_vcd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/stream_vcd.c') diff --git a/stream/stream_vcd.c b/stream/stream_vcd.c index e06e381f59..0dae3731fb 100644 --- a/stream/stream_vcd.c +++ b/stream/stream_vcd.c @@ -91,6 +91,7 @@ static int seek(stream_t *s,off_t newpos) { 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); -- cgit v1.2.3