MediaDefs: Fix percentage in when notifying the system
* Use TRACE instead of PRINT.
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.
|
||||||
|
|
||||||
PRINT(("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:
|
||||||
@@ -1285,7 +1285,7 @@ progress_shutdown(int stage,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (progress == NULL)
|
if (progress == NULL)
|
||||||
notify_system(stage, string);
|
notify_system(stage/100.0f, string);
|
||||||
else
|
else
|
||||||
progress(stage, string, cookie);
|
progress(stage, string, cookie);
|
||||||
}
|
}
|
||||||
@@ -1365,14 +1365,14 @@ 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.
|
||||||
|
|
||||||
PRINT(("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:
|
||||||
string = B_TRANSLATE("Stopping media server" B_UTF8_ELLIPSIS);
|
string = B_TRANSLATE("Stopping media server" B_UTF8_ELLIPSIS);
|
||||||
break;
|
break;
|
||||||
case 20:
|
case 20:
|
||||||
string = B_TRANSLATE("Telling media_addon_server to quit.");
|
string = B_TRANSLATE("Stopping media_addon_server.");
|
||||||
break;
|
break;
|
||||||
case 50:
|
case 50:
|
||||||
string = B_TRANSLATE("Starting media_services.");
|
string = B_TRANSLATE("Starting media_services.");
|
||||||
@@ -1386,7 +1386,7 @@ progress_startup(int stage,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (progress == NULL)
|
if (progress == NULL)
|
||||||
notify_system(stage, string);
|
notify_system(stage/100.0f, string);
|
||||||
else
|
else
|
||||||
progress(stage, string, cookie);
|
progress(stage, string, cookie);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user