DOKK / manpages / debian 12 / libxv-dev / XvUngrabPort.3.en
XvUngrabPort(3) libXv Functions XvUngrabPort(3)

XvUngrabPort - release port grabbed for video operation

#include <X11/extensions/Xvlib.h>

int XvUngrabPort(Display *dpy, XvPortID port, Time time);

Specifies the connection to the X server.
Specifies the port to be released. If the port had not been previously grabbed, the request is ignored.
Specifies the request timestamp.

XvUngrabPort(3)
releases a grabbed port. If time specifies a time before the last XvGrabPort(3) was executed, the request is ignored.

[Success]
Returned if XvUngrabPort(3) completed successfully.
[XvBadExtension]
Returned if the Xv extension is unavailable.
[XvBadAlloc]
Returned if XvUngrabPort(3) failed to allocate memory to process the request.

[XvBadPort]
Generated if the requested port does not exist.

XvGrabPort(3)

libXv 1.0.11 X Version 11