XvUngrabPort(3) libXv Functions XvUngrabPort(3)

# [NAME](#NAME)

XvUngrabPort - release port grabbed for video operation

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;X11/extensions/Xvlib.h&gt;**

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

# [ARGUMENTS](#ARGUMENTS)

[*dpy*](#dpy)

Specifies the connection to the X server.

[*port*](#port)

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

[*time*](#time)

Specifies the request timestamp.

# [DESCRIPTION](#DESCRIPTION)

[**XvUngrabPort**(3)](/man/os/libxv/XvUngrabPort.3)  
releases a grabbed port. If *time* specifies a time before the last [**XvGrabPort**(3)](/man/os/libxv/XvGrabPort.3) was executed, the request is ignored.

# [RETURN VALUES](#RETURN_VALUES)

\[Success]

Returned if [**XvUngrabPort**(3)](/man/os/libxv/XvUngrabPort.3) completed successfully.

\[XvBadExtension]

Returned if the Xv extension is unavailable.

\[XvBadAlloc]

Returned if [**XvUngrabPort**(3)](/man/os/libxv/XvUngrabPort.3) failed to allocate memory to process the request.

# [DIAGNOSTICS](#DIAGNOSTICS)

\[XvBadPort]

Generated if the requested port does not exist.

# [SEE ALSO](#SEE_ALSO)

[**XvGrabPort**(3)](/man/os/libxv/XvGrabPort.3)

libXv 1.0.13 X Version 11

---

Document: XvUngrabPort(3) from libxv 1.0.13-r7 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxv
