Debug mode build fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34619 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-12-10 16:01:48 +00:00
parent d363440a49
commit 6813f2c744
4 changed files with 7 additions and 6 deletions

View File

@ -1877,7 +1877,7 @@ BMediaRosterEx::RegisterNode(BMediaNode* node, media_addon_id addOnID,
int32 testFlavorID;
BMediaAddOn* addon = node->AddOn(&testFlavorID);
ASSERT(addOnID == addon != NULL ? addon->AddonID() : -1);
ASSERT(addOnID == (addon != NULL ? addon->AddonID() : -1));
ASSERT(flavorID == testFlavorID);
);

View File

@ -249,7 +249,7 @@ BSoundPlayer::Stop(bool block, bool flush)
for (tries = 250; fPlayerNode->IsPlaying() && tries != 0; tries--)
snooze(2000);
DEBUG_ONLY(if (maxtrys == 0)
DEBUG_ONLY(if (tries == 0)
TRACE("BSoundPlayer::Stop: waiting for node stop failed\n"));
// Wait until all buffers on the way to the physical output have been

View File

@ -84,10 +84,10 @@ TimeSourceObject::DeleteHook(BMediaNode* node)
// ERROR("TimeSourceObject::DeleteHook: system time source clone delete hook called\n");
// return B_ERROR;
// }
PRINT("TimeSourceObject::DeleteHook enter\n");
PRINT(1, "TimeSourceObject::DeleteHook enter\n");
gTimeSourceObjectManager->ObjectDeleted(this);
status_t status = BTimeSource::DeleteHook(node);
PRINT("TimeSourceObject::DeleteHook leave\n");
PRINT(1, "TimeSourceObject::DeleteHook leave\n");
return status;
}

View File

@ -67,7 +67,8 @@ TimeSourceObjectManager::GetTimeSource(const media_node& node)
CALLED();
BAutolock _(this);
PRINT("TimeSourceObjectManager::GetTimeSource, node id %ld\n", node.node);
PRINT(1, "TimeSourceObjectManager::GetTimeSource, node id %ld\n",
node.node);
NodeMap::iterator found = fMap.find(node.node);
if (found != fMap.end())
@ -91,7 +92,7 @@ TimeSourceObjectManager::ObjectDeleted(BTimeSource* timeSource)
CALLED();
BAutolock _(this);
PRINT("TimeSourceObjectManager::ObjectDeleted, node id %ld\n",
PRINT(1, "TimeSourceObjectManager::ObjectDeleted, node id %ld\n",
timeSource->ID());
fMap.erase(timeSource->ID());