summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>2012-10-21 11:14:13 +0000
committerwm4 <wm4@nowhere>2012-10-30 19:50:19 +0100
commitd509a7867bc885cfcab738b142e6ec1812bb47fc (patch)
treea447a19ac241ed816e6d242e45cb4f937c888716 /stream
parent43c7c3c0414c1bc9623b6248eb347922b142b579 (diff)
downloadmpv-d509a7867bc885cfcab738b142e6ec1812bb47fc.tar.bz2
mpv-d509a7867bc885cfcab738b142e6ec1812bb47fc.tar.xz
cache: enable STREAM_CTRL_GET_NUM_TITLES
Allow STREAM_CTRL_GET_NUM_TITLES with cache enabled. This is missing in r34474. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35258 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/cache2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 5bc23b9fbe..de7465a0dc 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -305,6 +305,7 @@ static int cache_execute_control(cache_vars_t *s) {
case STREAM_CTRL_SET_ANGLE:
needs_flush = 1;
uint_res = s->control_uint_arg;
+ case STREAM_CTRL_GET_NUM_TITLES:
case STREAM_CTRL_GET_NUM_CHAPTERS:
case STREAM_CTRL_GET_CURRENT_CHAPTER:
case STREAM_CTRL_GET_NUM_ANGLES:
@@ -631,6 +632,7 @@ int cache_do_control(stream_t *stream, int cmd, void *arg) {
return s->stream_time_pos != MP_NOPTS_VALUE ? STREAM_OK : STREAM_UNSUPPORTED;
case STREAM_CTRL_GET_LANG:
s->control_lang_arg = *(struct stream_lang_req *)arg;
+ case STREAM_CTRL_GET_NUM_TITLES:
case STREAM_CTRL_GET_NUM_CHAPTERS:
case STREAM_CTRL_GET_CURRENT_CHAPTER:
case STREAM_CTRL_GET_ASPECT_RATIO:
@@ -670,6 +672,7 @@ int cache_do_control(stream_t *stream, int cmd, void *arg) {
case STREAM_CTRL_GET_ASPECT_RATIO:
*(double *)arg = s->control_double_arg;
break;
+ case STREAM_CTRL_GET_NUM_TITLES:
case STREAM_CTRL_GET_NUM_CHAPTERS:
case STREAM_CTRL_GET_CURRENT_CHAPTER:
case STREAM_CTRL_GET_NUM_ANGLES: