media_kit: Fix style as suggested in ml

This commit is contained in:
Dario Casalinuovo
2015-07-24 20:09:08 +02:00
parent 3108062744
commit d009f28613
2 changed files with 9 additions and 11 deletions
+5 -7
View File
@@ -118,9 +118,9 @@ BMediaRosterEx::BMediaRosterEx(status_t* _error)
InitRosterDataExchange(BMessenger(this, this));
if (be_roster->StartWatching(BMessenger(this, this),
B_REQUEST_LAUNCHED | B_REQUEST_QUIT) != B_OK)
*_error = B_ERROR;
B_REQUEST_LAUNCHED | B_REQUEST_QUIT) != B_OK) {
*_error = B_ERROR;
}
sServerIsUp = BMediaRoster::IsRunning();
}
@@ -3262,10 +3262,8 @@ BMediaRoster::GetInstancesFor(media_addon_id addon, int32 flavor,
bool
BMediaRoster::IsRunning()
{
if (be_roster->IsRunning(B_MEDIA_SERVER_SIGNATURE)
&& be_roster->IsRunning(B_MEDIA_ADDON_SERVER_SIGNATURE))
return true;
return false;
return be_roster->IsRunning(B_MEDIA_SERVER_SIGNATURE)
&& be_roster->IsRunning(B_MEDIA_ADDON_SERVER_SIGNATURE);
}
+4 -4
View File
@@ -116,8 +116,8 @@ ServerApp::ServerApp()
BMediaRoster* roster = BMediaRoster::Roster();
if (roster->StartWatching(BMessenger(this, this),
B_MEDIA_SERVER_QUIT) != B_OK) {
TRACE("ServerApp: can't watch for B_MEDIA_SERVER_QUIT");
B_MEDIA_SERVER_QUIT) != B_OK) {
TRACE("ServerApp: can't watch for B_MEDIA_SERVER_QUIT");
}
}
@@ -138,8 +138,8 @@ ServerApp::~ServerApp()
BMediaRoster* roster = BMediaRoster::CurrentRoster();
if (roster->StopWatching(BMessenger(this, this),
B_MEDIA_SERVER_QUIT) != B_OK) {
TRACE("ServerApp: can't unwatch for B_MEDIA_SERVER_QUIT");
B_MEDIA_SERVER_QUIT) != B_OK) {
TRACE("ServerApp: can't unwatch for B_MEDIA_SERVER_QUIT");
}
}