Commit 935d91da authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Fixed a crash in mpris plugin

parent 22392a49
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment