Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix visualization freezes if user goes to main menu while playing son…

…g with Milkdrop and stops music. ProjectM fixes crash in same scenario.
  • Loading branch information...
commit a0a3b5c1d80427867e87b665babfb3be44ea882a 1 parent f835fb5
@classicspam authored
View
6 xbmc/addons/AddonDll.h
@@ -240,7 +240,11 @@ void CAddonDll<TheDll, TheStruct, TheProps>::Stop()
{
strcpy(str_id, "###GetSavedSettings");
sprintf (str_value, "%i", i);
- m_pDll->SetSetting((const char*)&str_id, (void*)&str_value);
+ ADDON_STATUS status = m_pDll->SetSetting((const char*)&str_id, (void*)&str_value);
+
+ if (status == ADDON_STATUS_UNKNOWN)
+ break;
+
if (strcmp(str_id,"###End") != 0) UpdateSetting(str_id, str_value);
}
CAddon::SaveSettings();
View
4 xbmc/visualizations/XBMCProjectM/Main.cpp
@@ -381,6 +381,10 @@ extern "C" ADDON_STATUS ADDON_SetSetting(const char* id, const void* value)
if (strcmp(id, "###GetSavedSettings") == 0) // We have some settings to be saved in the settings.xml file
{
+ if (!globalPM)
+ {
+ return ADDON_STATUS_UNKNOWN;
+ }
if (strcmp((char*)value, "0") == 0)
{
strcpy((char*)id, "lastpresetfolder");
Please sign in to comment.
Something went wrong with that request. Please try again.