yartat / MP-MediaInfo

Mediaportal MediaInfoLib wrapper
Other
45 stars 21 forks source link

LanguageMediaStreamBuilder.cs no longer retrieves language correctly #39

Closed GazzaRob closed 3 years ago

GazzaRob commented 3 years ago

Commit "Refactored project structure" has broken the retrieval of stream languages.

In MediaInfo.Wrapper/Builder/LanguageMediaStreamBuilder.cs, the new code: var language = Get((int)NativeMethods.Generic.Generic_Language, InfoKind.Text).ToLower(); does not fetch the language short name.

The previous code: var language = Get("Language").ToLower(); fetches the language short name correctly, e.g. "en".