Move old launch_media_server to deprecated file
This commit is contained in:
parent
1acc73c437
commit
ec7d3b4053
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <MediaDefs.h>
|
||||
#include <MediaRoster.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue