From 26d17bf3f7287fbc86fd88e5379e89da17eded05 Mon Sep 17 00:00:00 2001 From: phintuka Date: Tue, 25 Jan 2011 14:26:35 +0000 Subject: Initialize player language setting before fetching meta data --- xine/BluRay/input_bluray.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/xine/BluRay/input_bluray.c b/xine/BluRay/input_bluray.c index 659bf8d8..134e49d7 100644 --- a/xine/BluRay/input_bluray.c +++ b/xine/BluRay/input_bluray.c @@ -1086,6 +1086,15 @@ static int bluray_plugin_open (input_plugin_t *this_gen) lprintf("main title: %d (%05d.mpls)\n", title, playlist); } + /* update player settings */ + + bd_set_player_setting (this->bdh, BLURAY_PLAYER_SETTING_REGION_CODE, this->class->region); + bd_set_player_setting (this->bdh, BLURAY_PLAYER_SETTING_PARENTAL, this->class->parental); + bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_AUDIO_LANG, this->class->language); + bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_PG_LANG, this->class->language); + bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_MENU_LANG, this->class->language); + bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_COUNTRY_CODE, this->class->country); + /* get disc name */ this->meta_dl = bd_get_meta(this->bdh); @@ -1109,14 +1118,6 @@ static int bluray_plugin_open (input_plugin_t *this_gen) bd_register_overlay_proc(this->bdh, this, overlay_proc); - /* update player settings */ - bd_set_player_setting (this->bdh, BLURAY_PLAYER_SETTING_REGION_CODE, this->class->region); - bd_set_player_setting (this->bdh, BLURAY_PLAYER_SETTING_PARENTAL, this->class->parental); - bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_AUDIO_LANG, this->class->language); - bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_PG_LANG, this->class->language); - bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_MENU_LANG, this->class->language); - bd_set_player_setting_str(this->bdh, BLURAY_PLAYER_SETTING_COUNTRY_CODE, this->class->country); - /* open */ this->current_title = -1; this->current_title_idx = -1; -- cgit v1.2.3