Skip to content

Add RawHandle for libmpv C APIs the package does not wrap - #12

Open
2opremio wants to merge 1 commit into
gen2brain:mainfrom
2opremio:raw-handle
Open

2opremio wants to merge 1 commit into
gen2brain:mainfrom
2opremio:raw-handle

Conversation

@2opremio

Copy link
Copy Markdown

RawHandle() returns the underlying mpv_handle as an unsafe.Pointer, in both the cgo and purego builds. As with os.File.Fd, it stays owned by Mpv, is valid until Destroy or TerminateDestroy, and must not be destroyed or used with mpv_wait_event.

The test checks the handle is stable for a client and distinct between clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant