aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/interfaces/legacy/Player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/interfaces/legacy/Player.cpp b/xbmc/interfaces/legacy/Player.cpp
index 2006ad38c5..85ed2a6a3f 100644
--- a/xbmc/interfaces/legacy/Player.cpp
+++ b/xbmc/interfaces/legacy/Player.cpp
@@ -57,7 +57,10 @@ namespace XBMCAddon
// we're shutting down so unregister me.
if (languageHook)
+ {
+ DelayedCallGuard dc;
languageHook->unregisterPlayerCallback(this);
+ }
}
void Player::playStream(const String& item, const xbmcgui::ListItem* plistitem, bool windowed)