aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCastagnaIT <gottardo.stefano.83@gmail.com>2024-09-28 10:51:02 +0200
committerCastagnaIT <gottardo.stefano.83@gmail.com>2024-09-29 09:52:18 +0200
commita859f59bc99a851096e50c89f66aea1f3055078e (patch)
tree7215004adc92f4122c7649d9760d699dd01eebdb
parent7965060b2a1c6de4a9504e7aa14c1bead7283891 (diff)
[VideoPlayer] Copy codecName to SubtitleStreamInfo
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
index 78623671b9..12117a1d5f 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp
+++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
@@ -472,6 +472,7 @@ void CSelectionStreams::Update(const std::shared_ptr<CDVDInputStream>& input,
SubtitleStreamInfo info = nav->GetSubtitleStreamInfo(i);
s.name = info.name;
+ s.codec = info.codecName;
s.flags = info.flags;
s.language = g_LangCodeExpander.ConvertToISO6392B(info.language);
Update(s);
@@ -5390,6 +5391,7 @@ void CVideoPlayer::GetSubtitleStreamInfo(int index, SubtitleStreamInfo& info) co
info.name += "(Invalid)";
info.language = s.language;
+ info.codecName = s.codec;
info.flags = s.flags;
}