mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user