Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[pvr] fixed deadlock in CPVRManager::CheckParentalLock when the manag…

…er is being stopped
  • Loading branch information...
commit 2d221752d3053f070a3f8fde6394190da24affde 1 parent 02f2a4d
@opdenkamp opdenkamp authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  xbmc/pvr/PVRManager.cpp
View
3  xbmc/pvr/PVRManager.cpp
@@ -759,6 +759,9 @@ bool CPVRManager::CheckParentalLock(const CPVRChannel &channel)
bool CPVRManager::IsParentalLocked(const CPVRChannel &channel)
{
bool bReturn(false);
+ CSingleLock lock(m_managerStateMutex);
+ if (!IsStarted())
+ return bReturn;
CPVRChannelPtr currentChannel(new CPVRChannel(false));
if (// different channel
Please sign in to comment.
Something went wrong with that request. Please try again.