stream: add STREAM_CTRL_GET_CURRENT_TITLE

Add new stream control command STREAM_CTRL_GET_CURRENT_TITLE for DVDs.

This provides the current title (aka track) number of a DVD.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35263 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ib
2012-10-21 14:56:50 +00:00
committed by wm4
parent d509a7867b
commit 1215f0871c
4 changed files with 14 additions and 0 deletions

View File

@@ -127,6 +127,11 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg)
return 1;
}
case STREAM_CTRL_GET_CURRENT_TITLE: {
*((unsigned int *) arg) = b->current_title;
return 1;
}
case STREAM_CTRL_GET_CURRENT_CHAPTER: {
*((unsigned int *) arg) = b->current_chapter;
return 1;