---
name: "XvUngrabPort"
section: "3x"
platform: "linux"
package: "libxv-dev"
version: "1:1.0.2-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/XvUngrabPort/3x"
---

# XvUngrabPort(3x)

release port grabbed for video operation

## Name

XvUngrabPort - release port grabbed for video operation

## Syntax

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

**XvUngrabPort(***dpy, port, time*)

**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(3x)](/XvUngrabPort/3x.md) releases a grabbed port.  If *time* specifies a time before the last [XvGrabPort(3x)](/XvGrabPort/3x.md) was executed, the request is ignored.

## Returned Values

- \[Success\]

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

- \[XvBadExtension\]

  Returned if the Xv extension is unavailable.

- \[XvBadAlloc\]

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

## Diagnostics

- \[XvBadPort\]

  Generated if the requested port does not exist.

## See Also

[XvGrabPort(3x)](/XvGrabPort/3x.md)\
