summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authormplayer-svn <svn@mplayerhq.hu>2011-12-31 12:20:08 +0000
committerwm4 <wm4@nowhere>2012-08-03 01:43:03 +0200
commit98f15b645ff1d10a914c004d0b076916a5f1f094 (patch)
tree61cccc0937d86a1f06a01d874a9d33f52603c438 /libmpdemux
parente97d658bdee7b1ebb1e62fcf8d79b150bd40213f (diff)
downloadmpv-98f15b645ff1d10a914c004d0b076916a5f1f094.tar.bz2
mpv-98f15b645ff1d10a914c004d0b076916a5f1f094.tar.xz
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
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demuxer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h
index 10ccc0b8e4..bdc401dd14 100644
--- a/libmpdemux/demuxer.h
+++ b/libmpdemux/demuxer.h
@@ -248,6 +248,8 @@ typedef struct demuxer {
struct sh_video *v_streams[MAX_V_STREAMS];
struct sh_sub *s_streams[MAX_S_STREAMS];
+ int num_titles;
+
struct demux_chapter *chapters;
int num_chapters;