diff options
| author | phintuka <phintuka> | 2011-06-19 21:49:40 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2011-06-19 21:49:40 +0000 |
| commit | c5788fd40e4b697e6ef88b1b5e5f900d02cd5e53 (patch) | |
| tree | abadec72286dd822b2ab719c035d4f44f1789f9e | |
| parent | 7c17722c31417aa108871b097a44812f763ebe59 (diff) | |
| download | xineliboutput-c5788fd40e4b697e6ef88b1b5e5f900d02cd5e53.tar.gz xineliboutput-c5788fd40e4b697e6ef88b1b5e5f900d02cd5e53.tar.bz2 | |
Set correct title number/count when using disc menus
| -rw-r--r-- | xine/BluRay/input_bluray.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xine/BluRay/input_bluray.c b/xine/BluRay/input_bluray.c index a6c62419..0a7d73a6 100644 --- a/xine/BluRay/input_bluray.c +++ b/xine/BluRay/input_bluray.c @@ -354,8 +354,13 @@ static void update_title_info(bluray_input_plugin_t *this, int playlist_id) /* set stream info */ - _x_stream_info_set(this->stream, XINE_STREAM_INFO_DVD_TITLE_COUNT, this->num_title_idx); - _x_stream_info_set(this->stream, XINE_STREAM_INFO_DVD_TITLE_NUMBER, this->current_title_idx + 1); + if (this->nav_mode) { + _x_stream_info_set(this->stream, XINE_STREAM_INFO_DVD_TITLE_COUNT, this->num_titles); + _x_stream_info_set(this->stream, XINE_STREAM_INFO_DVD_TITLE_NUMBER, this->current_title); + } else { + _x_stream_info_set(this->stream, XINE_STREAM_INFO_DVD_TITLE_COUNT, this->num_title_idx); + _x_stream_info_set(this->stream, XINE_STREAM_INFO_DVD_TITLE_NUMBER, this->current_title_idx + 1); + } update_stream_info(this); } |
