Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't run servercachedatabase if we playing video
This caused stuttering, most likely because it was blocking the main
thread while doing updates to the database. So this is the Q&D way of
avoiding it.

Related to xbmc#1044
  • Loading branch information
Tobias Hieta authored and LongChair committed Jun 16, 2014
1 parent 07b2cab commit 6556468
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions xbmc/ApplicationMessenger.cpp
Expand Up @@ -852,11 +852,14 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
}
case TMSG_PLEX_SAVE_SERVER_CACHE:
{
CPlexServerCacheDatabase db;
if (db.Open())
if (!g_application.IsPlayingFullScreenVideo())
{
db.cacheServers();
db.Close();
CPlexServerCacheDatabase db;
if (db.Open())
{
db.cacheServers();
db.Close();
}
}
}
/* END PLEX */
Expand Down

0 comments on commit 6556468

Please sign in to comment.