NodeManager: Use boolean expression

This commit is contained in:
Dario Casalinuovo
2016-04-04 01:26:28 +02:00
parent 1199f321ea
commit 77c6944c02
+1 -1
View File
@@ -161,7 +161,7 @@ NodeManager::RegisterNode(media_addon_id addOnID, int32 flavorID,
node.creator = -1; // will be set later
node.ref_count = 1;
if (node.kinds & B_TIME_SOURCE
if ((node.kinds & B_TIME_SOURCE) != 0
&& strcmp(node.name, "System clock") == 0) {
// This may happen when media_addon_server crash,
// we will replace the old timesource.