Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Support for weak clients #3

Closed
fsobolev opened this issue Jul 18, 2023 · 0 comments · Fixed by #10
Closed

Support for weak clients #3

fsobolev opened this issue Jul 18, 2023 · 0 comments · Fixed by #10
Labels
feature New feature or request
Milestone

Comments

@fsobolev
Copy link
Member

There's currently no support for weak clients in MPV#.

Docs for mpv_create_weak_client:

/**
 * This is the same as mpv_create_client(), but the created mpv_handle is
 * treated as a weak reference. If all mpv_handles referencing a core are
 * weak references, the core is automatically destroyed. (This still goes
 * through normal uninit of course. Effectively, if the last non-weak mpv_handle
 * is destroyed, then the weak mpv_handles receive MPV_EVENT_SHUTDOWN and are
 * asked to terminate as well.)
 *
 * Note if you want to use this like refcounting: you have to be aware that
 * mpv_terminate_destroy() _and_ mpv_destroy() for the last non-weak
 * mpv_handle will block until all weak mpv_handles are destroyed.
 */
@fsobolev fsobolev added the feature New feature or request label Jul 18, 2023
@fsobolev fsobolev added this to the V2023.7.1 milestone Jul 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant