MediaKit: Style fixes
This commit is contained in:
@@ -1261,7 +1261,7 @@ progress_shutdown(int stage,
|
|||||||
// parameter "message" is no longer used. It is kept for compatibility with
|
// parameter "message" is no longer used. It is kept for compatibility with
|
||||||
// BeOS as this is used as a shutdown_media_server callback.
|
// BeOS as this is used as a shutdown_media_server callback.
|
||||||
|
|
||||||
TRACE("stage : %i\n", stage);
|
TRACE("stage : %i \n", stage);
|
||||||
const char* string = "Unknown stage";
|
const char* string = "Unknown stage";
|
||||||
switch (stage) {
|
switch (stage) {
|
||||||
case 10:
|
case 10:
|
||||||
@@ -1365,7 +1365,7 @@ progress_startup(int stage,
|
|||||||
// parameter "message" is no longer used. It is kept for compatibility with
|
// parameter "message" is no longer used. It is kept for compatibility with
|
||||||
// BeOS as this is used as a shutdown_media_server callback.
|
// BeOS as this is used as a shutdown_media_server callback.
|
||||||
|
|
||||||
TRACE("stage : %i\n", stage);
|
TRACE("stage : %i \n", stage);
|
||||||
const char* string = "Unknown stage";
|
const char* string = "Unknown stage";
|
||||||
switch (stage) {
|
switch (stage) {
|
||||||
case 10:
|
case 10:
|
||||||
|
|||||||
@@ -3320,13 +3320,13 @@ BMediaRoster::MessageReceived(BMessage* message)
|
|||||||
{
|
{
|
||||||
RosterNotification notification;
|
RosterNotification notification;
|
||||||
if (message->FindInt32(NOTIFICATION_PARAM_WHAT, ¬ification.what)
|
if (message->FindInt32(NOTIFICATION_PARAM_WHAT, ¬ification.what)
|
||||||
!= B_OK) {
|
!= B_OK) {
|
||||||
TRACE("BMediaRoster MEDIA_ROSTER_REQUEST_NOTIFICATIONS can't"
|
TRACE("BMediaRoster MEDIA_ROSTER_REQUEST_NOTIFICATIONS can't"
|
||||||
"find what parameter");
|
"find what parameter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (message->FindMessenger(NOTIFICATION_PARAM_MESSENGER,
|
if (message->FindMessenger(NOTIFICATION_PARAM_MESSENGER,
|
||||||
¬ification.messenger) != B_OK) {
|
¬ification.messenger) != B_OK) {
|
||||||
TRACE("BMediaRoster MEDIA_ROSTER_REQUEST_NOTIFICATIONS can't"
|
TRACE("BMediaRoster MEDIA_ROSTER_REQUEST_NOTIFICATIONS can't"
|
||||||
"find messenger");
|
"find messenger");
|
||||||
return;
|
return;
|
||||||
@@ -3339,13 +3339,13 @@ BMediaRoster::MessageReceived(BMessage* message)
|
|||||||
{
|
{
|
||||||
RosterNotification notification;
|
RosterNotification notification;
|
||||||
if (message->FindInt32(NOTIFICATION_PARAM_WHAT, ¬ification.what)
|
if (message->FindInt32(NOTIFICATION_PARAM_WHAT, ¬ification.what)
|
||||||
!= B_OK) {
|
!= B_OK) {
|
||||||
TRACE("BMediaRoster MEDIA_ROSTER_CANCEL_NOTIFICATIONS can't"
|
TRACE("BMediaRoster MEDIA_ROSTER_CANCEL_NOTIFICATIONS can't"
|
||||||
"find what parameter");
|
"find what parameter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (message->FindMessenger(NOTIFICATION_PARAM_MESSENGER,
|
if (message->FindMessenger(NOTIFICATION_PARAM_MESSENGER,
|
||||||
¬ification.messenger) != B_OK) {
|
¬ification.messenger) != B_OK) {
|
||||||
TRACE("BMediaRoster MEDIA_ROSTER_CANCEL_NOTIFICATIONS can't"
|
TRACE("BMediaRoster MEDIA_ROSTER_CANCEL_NOTIFICATIONS can't"
|
||||||
"find messenger");
|
"find messenger");
|
||||||
return;
|
return;
|
||||||
@@ -3355,7 +3355,7 @@ BMediaRoster::MessageReceived(BMessage* message)
|
|||||||
if (sNotificationList.Get(i, ¤t) != true)
|
if (sNotificationList.Get(i, ¤t) != true)
|
||||||
return;
|
return;
|
||||||
if (current->what == notification.what
|
if (current->what == notification.what
|
||||||
&& current->messenger == notification.messenger) {
|
&& current->messenger == notification.messenger) {
|
||||||
sNotificationList.Remove(i);
|
sNotificationList.Remove(i);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -3394,7 +3394,7 @@ BMediaRoster::MessageReceived(BMessage* message)
|
|||||||
return;
|
return;
|
||||||
if (current->what == B_MEDIA_SERVER_STARTED) {
|
if (current->what == B_MEDIA_SERVER_STARTED) {
|
||||||
if (current->messenger.SendMessage(
|
if (current->messenger.SendMessage(
|
||||||
B_MEDIA_SERVER_STARTED) != B_OK) {
|
B_MEDIA_SERVER_STARTED) != B_OK) {
|
||||||
if(!current->messenger.IsValid())
|
if(!current->messenger.IsValid())
|
||||||
sNotificationList.Remove(i);
|
sNotificationList.Remove(i);
|
||||||
}
|
}
|
||||||
@@ -3424,7 +3424,7 @@ BMediaRoster::MessageReceived(BMessage* message)
|
|||||||
return;
|
return;
|
||||||
if (current->what == B_MEDIA_SERVER_QUIT) {
|
if (current->what == B_MEDIA_SERVER_QUIT) {
|
||||||
if (current->messenger.SendMessage(
|
if (current->messenger.SendMessage(
|
||||||
B_MEDIA_SERVER_QUIT) != B_OK) {
|
B_MEDIA_SERVER_QUIT) != B_OK) {
|
||||||
if(!current->messenger.IsValid())
|
if(!current->messenger.IsValid())
|
||||||
sNotificationList.Remove(i);
|
sNotificationList.Remove(i);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user