Fixed a crash in mpris plugin
This commit is contained in:
parent
22392a4917
commit
935d91daf8
1 changed files with 7 additions and 1 deletions
|
@ -133,7 +133,13 @@ void MprisControlPlugin::removePlayer(const QString& ifaceName)
|
|||
bool MprisControlPlugin::receivePackage (const NetworkPackage& np)
|
||||
{
|
||||
|
||||
if (np.type() != PACKAGE_TYPE_MPRIS) return false;
|
||||
if (np.type() != PACKAGE_TYPE_MPRIS) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (np.has("playerList")) {
|
||||
return false; //Whoever sent this is an mpris client and not an mpris control!
|
||||
}
|
||||
|
||||
//Send the player list
|
||||
const QString& player = np.get<QString>("player");
|
||||
|
|
Loading…
Reference in a new issue