[Videos] SelectSubtitleLanguage & SelectAudioLanguage: unable to build CultureInfo (1 Viewer)

Waly

MP Donator
  • Premium Supporter
  • July 21, 2009
    18
    3
    Home Country
    Czech Republic Czech Republic
    MediaPortal Version: MediaPortal 1.1.0 BETA 1 SVN-Revision:23978
    MediaPortal Skin: Blue3wide
    Windows Version: Windows 7 Ultimate 64bit RTM
    CPU Type: AMD Athlon 64
    Memory: 2GB DDR2
    Video Card: ATI HD 3200


    Reproduce:
    1. In video settings choose default Subtitle Language or Audio Language to Czech
    2. During play of movie (or just start some movie) choose context menu and this exception appeares:
    Code:
    SelectAudioLanguage - unable to build CultureInfo, make sure MediaPortal.xml is not corrupted! - System.ArgumentException: Culture name 'czech' is not supported.
    Parameter name: name
       in System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
       in System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
       in System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
       in MediaPortal.Player.VideoPlayerVMR7.SelectAudioLanguage()

    Additional Information:
    Constructor CultureInfo does not accept string as "czech" or "english" (stored in Mediaportal.xml by Mediaportal). It accepts strings as "cs", "cs-CZ", "en", ...
    When I manually change elements Audiolanguage in Mediaportal.xml to "cs", it starts working and also chooses right audio track. But its not solution... One time it also crashed whole Mediaportal - AccessViolationException. Log attached.
     

    Users who are viewing this thread

    Top Bottom