Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Players] Convert the language code of a selection stream to three ch…

…ars if necessary.
  • Loading branch information...
commit bee3993a3cdcef596c20eb5313aabe1a84d5bdb7 1 parent 25b1623
Andreas Zelend authored
8 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -369,6 +369,14 @@ void CSelectionStreams::Update(CDVDInputStream* input, CDVDDemux* demuxer)
369 369 s.type = stream->type;
370 370 s.id = stream->iId;
371 371 s.language = stream->language;
  372 +
  373 + if (s.language.length() == 2)
  374 + {
  375 + CStdString lang;
  376 + g_LangCodeExpander.ConvertToThreeCharCode(lang, stream->language);
  377 + s.language = lang;
  378 + }
  379 +
372 380 s.flags = stream->flags;
373 381 s.filename = demuxer->GetFileName();
374 382 stream->GetStreamName(s.name);
8 xbmc/cores/omxplayer/OMXPlayer.cpp
@@ -369,6 +369,14 @@ void COMXSelectionStreams::Update(CDVDInputStream* input, CDVDDemux* demuxer)
369 369 s.type = stream->type;
370 370 s.id = stream->iId;
371 371 s.language = stream->language;
  372 +
  373 + if (s.language.length() == 2)
  374 + {
  375 + CStdString lang;
  376 + g_LangCodeExpander.ConvertToThreeCharCode(lang, stream->language);
  377 + s.language = lang;
  378 + }
  379 +
372 380 s.flags = stream->flags;
373 381 s.filename = demuxer->GetFileName();
374 382 stream->GetStreamName(s.name);

0 comments on commit bee3993

Please sign in to comment.
Something went wrong with that request. Please try again.