---
name: "XvUngrabPort"
section: "3"
platform: "linux"
package: "libxv"
version: "1.0.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XvUngrabPort"
---

# XvUngrabPort(3)

release port grabbed for video operation

## NAME

XvUngrabPort - release port grabbed for video operation

## SYNOPSIS

**#include \<X11/extensions/Xvlib.h\>**

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

## ARGUMENTS

- *dpy*

  Specifies the connection to the X server.

- *port*

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

- *time*

  Specifies the request timestamp.

## DESCRIPTION

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

## RETURN VALUES

- \[Success\]

  Returned if [**XvUngrabPort**(3)](/XvUngrabPort/3.md) completed successfully.

- \[XvBadExtension\]

  Returned if the Xv extension is unavailable.

- \[XvBadAlloc\]

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

## DIAGNOSTICS

- \[XvBadPort\]

  Generated if the requested port does not exist.

## SEE ALSO

[**XvGrabPort**(3)](/XvGrabPort/3.md)
