try to use current GUI language as initial dvd menu language
authorFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 10 Mar 2009 10:26:55 +0000 (11:26 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 10 Mar 2009 10:26:55 +0000 (11:26 +0100)
lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp

index c2590af56cccc46ec8fb34ab27d49a5f1f04094c..e35f2807bdd6369e8d595b547d78b9e6c45beabb 100644 (file)
@@ -103,7 +103,10 @@ eServiceDVD::eServiceDVD(const char *filename):
        // create handle
        ddvd_set_dvd_path(m_ddvdconfig, filename);
        ddvd_set_ac3thru(m_ddvdconfig, 0);
-       ddvd_set_language(m_ddvdconfig, "de");
+
+       std::string ddvd_language;
+       if (!ePythonConfigQuery::getConfigValue("config.osd.language", ddvd_language))
+               ddvd_set_language(m_ddvdconfig, (ddvd_language.substr(0,2)).c_str());
 
        int fd = open("/proc/stb/video/aspect", O_RDONLY);
        if (fd > -1)