diff options
author | phintuka <phintuka> | 2011-01-25 14:26:35 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2011-01-25 14:26:35 +0000 |
commit | 26d17bf3f7287fbc86fd88e5379e89da17eded05 (patch) | |
tree | 2561849e431109e1a055354371c52dd7c842d13d | |
parent | 0937321114de2cf54940fa7802a9f27599cdce71 (diff) | |
download | xineliboutput-26d17bf3f7287fbc86fd88e5379e89da17eded05.tar.gz xineliboutput-26d17bf3f7287fbc86fd88e5379e89da17eded05.tar.bz2 |
Initialize player language setting before fetching meta data
-rw-r--r-- | xine/BluRay/input_bluray.c | 17 |
1 files 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; |