Skip to content

Instantly share code, notes, and snippets.

@vvuk
Created January 29, 2017 04:25
Show Gist options
  • Save vvuk/2c914536e012f8ccffb0eee198ff7ea1 to your computer and use it in GitHub Desktop.
Save vvuk/2c914536e012f8ccffb0eee198ff7ea1 to your computer and use it in GitHub Desktop.
fix for headless kodi crash
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