fixed: crash on exit when playing a file via upnp's "play with" (fixes #14559). We...
[vuplus_xbmc] / xbmc / Application.cpp
index 1072efc..e851294 100644 (file)
@@ -3479,13 +3479,13 @@ void CApplication::Stop(int exitCode)
 
     CApplicationMessenger::Get().Cleanup();
 
+    CLog::Log(LOGNOTICE, "stop player");
+    m_pPlayer->ClosePlayer();
+
     StopPVRManager();
     StopServices();
     //Sleep(5000);
 
-    CLog::Log(LOGNOTICE, "stop player");
-    m_pPlayer->ClosePlayer();
-
 #if HAS_FILESYTEM_DAAP
     CLog::Log(LOGNOTICE, "stop daap clients");
     g_DaapClient.Release();