diff --git a/headers/os/media/MediaDefs.h b/headers/os/media/MediaDefs.h index a4d9903570..4ef5803425 100644 --- a/headers/os/media/MediaDefs.h +++ b/headers/os/media/MediaDefs.h @@ -792,9 +792,6 @@ struct buffer_clone_info; // It's also provided a new version of launch_media_server allowing // to specify a custom callback for notifications. -// Deprecated -status_t launch_media_server(uint32 flags); - status_t launch_media_server(bigtime_t timeout = B_INFINITE_TIMEOUT, bool (*progress)(int stage, const char* message, void* cookie) = NULL, void* cookie = NULL, uint32 flags = 0); diff --git a/src/kits/media/MediaDefs.cpp b/src/kits/media/MediaDefs.cpp index 2c15419a8d..3127bedcaf 100644 --- a/src/kits/media/MediaDefs.cpp +++ b/src/kits/media/MediaDefs.cpp @@ -1392,13 +1392,6 @@ progress_startup(int stage, } -status_t -launch_media_server(uint32 flags) -{ - return launch_media_server(0, NULL, NULL, flags); -} - - status_t launch_media_server(bigtime_t timeout, bool (*progress)(int stage, const char* message, void* cookie), diff --git a/src/kits/media/legacy/Deprecated.cpp b/src/kits/media/legacy/Deprecated.cpp index 1f568a60e6..d490a316e9 100644 --- a/src/kits/media/legacy/Deprecated.cpp +++ b/src/kits/media/legacy/Deprecated.cpp @@ -4,6 +4,7 @@ */ +#include #include #include @@ -68,12 +69,21 @@ BMediaRoster::SetOutputBuffersFor(const media_source& output, // MediaDefs.h +status_t launch_media_server(uint32 flags); + status_t media_realtime_init_image(image_id image, uint32 flags); status_t media_realtime_init_thread(thread_id thread, size_t stack_used, uint32 flags); +status_t +launch_media_server(uint32 flags) +{ + return launch_media_server(0, NULL, NULL, flags); +} + + // Given an image_id, prepare that image_id for realtime media // If the kind of media indicated by "flags" is not enabled for real-time, // B_MEDIA_REALTIME_DISABLED is returned. @@ -86,6 +96,7 @@ media_realtime_init_image(image_id image, uint32 flags) return B_OK; } + // Given a thread ID, and an optional indication of what the thread is // doing in "flags", prepare the thread for real-time media performance. // Currently, this means locking the thread stack, up to size_used bytes,