Skip to content

Commit

Permalink
[3d] Automatically enable 3D for ssif
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Sep 16, 2015
1 parent 7237707 commit 53fd307
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xbmc/guilib/StereoscopicsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "utils/Variant.h"
#include "windowing/WindowingFactory.h"
#include "guiinfo/GUIInfoLabels.h"
#include "utils/URIUtils.h"

using namespace KODI::MESSAGING;

Expand Down Expand Up @@ -172,6 +173,12 @@ std::string CStereoscopicsManager::DetectStereoModeByString(const std::string &n
std::string searchString(needle);
CRegExp re(true);

if (URIUtils::HasExtension(needle, ".ssif"))
{
stereoMode = "left_right";
return stereoMode;
}

if (!re.RegComp(g_advancedSettings.m_stereoscopicregex_3d.c_str()))
{
CLog::Log(LOGERROR, "%s: Invalid RegExp for matching 3d content:'%s'", __FUNCTION__, g_advancedSettings.m_stereoscopicregex_3d.c_str());
Expand Down

0 comments on commit 53fd307

Please sign in to comment.