Skip to content

Commit

Permalink
always add empty string as last element in m_videoMkvSegmentsSearchDirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Patelscheck committed Nov 23, 2016
1 parent 5a69e56 commit 09b62ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xbmc/settings/AdvancedSettings.cpp
Expand Up @@ -160,6 +160,8 @@ void CAdvancedSettings::Initialize()
m_videoFpsDetect = 1;
m_videoBusyDialogDelay_ms = 500;

m_videoMkvSegmentsSearchDirs = std::vector<std::string>{""};

m_mediacodecForceSoftwareRendring = false;

m_videoDefaultLatency = 0.0;
Expand Down Expand Up @@ -561,9 +563,10 @@ void CAdvancedSettings::ParseSettingsFile(const std::string &file)

auto pMkvSegmentsSearchDirs = pElement->FirstChildElement("mkvsegmentssearchdirs");
if (pMkvSegmentsSearchDirs)
{
XMLUtils::GetStringArray(pMkvSegmentsSearchDirs, "subdir", m_videoMkvSegmentsSearchDirs, true, "");
else
m_videoMkvSegmentsSearchDirs = std::vector<std::string>{""};
m_videoMkvSegmentsSearchDirs.push_back("");
}

TiXmlElement* pAdjustRefreshrate = pElement->FirstChildElement("adjustrefreshrate");
if (pAdjustRefreshrate)
Expand Down

0 comments on commit 09b62ef

Please sign in to comment.