mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
ef827af06c
This does what it's documented to do. The implementation reuses the code in mpv_detach_destroy(). Due to the way async requests currently work, just sending a synchronous dummy request (like a "ignore" command) would be enough to ensure synchronization, but this code will continue to work even if this changes. The line "ctx->event_mask = 0;" is removed, but it shouldn't be needed. (If a client is somehow very slow to terminate, this could silence an annoying queue overflow message, but all in all it does nothing.) Calling mpv_wait_async_requests() and mpv_wait_event() concurrently is in theory allowed, so change pthread_cond_signal() to pthread_cond_broadcast() to avoid missed wakeups. As requested in issue #1542.
43 lines
827 B
Modula-2
43 lines
827 B
Modula-2
mpv_client_api_version
|
|
mpv_client_name
|
|
mpv_command
|
|
mpv_command_async
|
|
mpv_command_node
|
|
mpv_command_node_async
|
|
mpv_command_string
|
|
mpv_create
|
|
mpv_create_client
|
|
mpv_detach_destroy
|
|
mpv_error_string
|
|
mpv_event_name
|
|
mpv_free
|
|
mpv_free_node_contents
|
|
mpv_get_property
|
|
mpv_get_property_async
|
|
mpv_get_property_osd_string
|
|
mpv_get_property_string
|
|
mpv_get_sub_api
|
|
mpv_get_time_us
|
|
mpv_get_wakeup_pipe
|
|
mpv_initialize
|
|
mpv_load_config_file
|
|
mpv_observe_property
|
|
mpv_opengl_cb_init_gl
|
|
mpv_opengl_cb_render
|
|
mpv_opengl_cb_set_update_callback
|
|
mpv_opengl_cb_uninit_gl
|
|
mpv_request_event
|
|
mpv_request_log_messages
|
|
mpv_resume
|
|
mpv_set_option
|
|
mpv_set_option_string
|
|
mpv_set_property
|
|
mpv_set_property_async
|
|
mpv_set_property_string
|
|
mpv_set_wakeup_callback
|
|
mpv_suspend
|
|
mpv_terminate_destroy
|
|
mpv_unobserve_property
|
|
mpv_wait_async_requests
|
|
mpv_wait_event
|
|
mpv_wakeup |