Created
January 29, 2017 04:25
-
-
Save vvuk/2c914536e012f8ccffb0eee198ff7ea1 to your computer and use it in GitHub Desktop.
fix for headless kodi crash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/xbmc/GUIInfoManager.cpp b/xbmc/GUIInfoManager.cpp | |
index c8bcd30..5cebc87 100644 | |
--- a/xbmc/GUIInfoManager.cpp | |
+++ b/xbmc/GUIInfoManager.cpp | |
@@ -1241,6 +1241,8 @@ int CGUIInfoManager::TranslateSingleString(const std::string &strCondition, bool | |
} | |
else if (cat.name == "skin") | |
{ | |
+ if (g_application.IsHeadless()) | |
+ return 0; | |
for (size_t i = 0; i < sizeof(skin_labels) / sizeof(infomap); i++) | |
{ | |
if (prop.name == skin_labels[i].str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment