aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorace20022 <ace20022@ymail.com>2018-08-25 21:57:32 +0200
committerace20022 <ace20022@ymail.com>2018-08-25 22:02:22 +0200
commita934d78c64981a63c1a11d598817a8dc06d4425e (patch)
tree9194c1b40f3e167a954d19392c7c99b99a514ab6
parentc321049c529b3547064d902cd2a6f351c21ddd2f (diff)
[videoplayer] Fix external vob subs usage.
-rw-r--r--xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxVobsub.cpp1
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayer.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxVobsub.cpp b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxVobsub.cpp
index f7d3ec7995..d2d4e5f0f5 100644
--- a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxVobsub.cpp
+++ b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxVobsub.cpp
@@ -212,6 +212,7 @@ bool CDVDDemuxVobsub::ParseId(SState& state, char* line)
stream->codec = AV_CODEC_ID_DVD_SUBTITLE;
stream->uniqueId = m_Streams.size();
stream->source = m_source;
+ stream->demuxerId = m_demuxerId;
state.id = stream->uniqueId;
m_Streams.push_back(stream.release());
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
index 7385c023f3..e5cbd2d637 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp
+++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
@@ -4598,9 +4598,9 @@ int CVideoPlayer::AddSubtitleFile(const std::string& filename, const std::string
if (static_cast<StreamFlags>(info.flag) != StreamFlags::FLAG_NONE)
stream.flags = static_cast<StreamFlags>(info.flag);
}
-
+ UpdateContent();
return m_SelectionStreams.TypeIndexOf(STREAM_SUBTITLE,
- m_SelectionStreams.Source(STREAM_SOURCE_DEMUX_SUB, filename), -1, 0);
+ m_SelectionStreams.Source(STREAM_SOURCE_DEMUX_SUB, filename), v.GetDemuxerId(), 0);
}
if(ext == ".sub")
{