XvStopVideo(3) libXv Functions XvStopVideo(3)

# [NAME](#NAME)

XvStopVideo - stop active video

# [SYNOPSIS](#SYNOPSIS)

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

```
int XvStopVideo(Display *dpy, XvPortID port, Drawable draw);
```

# [ARGUMENTS](#ARGUMENTS)

[*dpy*](#dpy)

Specifies the connection to the X server.

[*port*](#port)

Specifies the port for which video is to be stopped.

[*draw*](#draw)

Specifies the drawable associated with the named port.

# [DESCRIPTION](#DESCRIPTION)

[**XvStopVideo**(3)](/man/os/libxv/XvStopVideo.3) stops active video for the specified port and drawable. If the port is not processing video, or if it is processing video in a different drawable, the request is ignored. When video is stopped a [**XvVideoNotify**(3)](/man/os/libxv/XvVideoNotify.3) event with detail XvStopped is generated for the associated drawable.

# [RETURN VALUES](#RETURN_VALUES)

\[Success]

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

\[XvBadExtension]

Returned if the Xv extension is unavailable.

\[XvBadAlloc]

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

# [DIAGNOSTICS](#DIAGNOSTICS)

\[XvBadPort]

Generated if the requested port does not exist.

\[BadDrawable]

Generated if the requested drawable does not exist.

# [SEE ALSO](#SEE_ALSO)

[**XvGetVideo**(3)](/man/os/libxv/XvGetVideo.3), [**XvPutVideo**(3)](/man/os/libxv/XvPutVideo.3), [**XvVideoNotify**(3)](/man/os/libxv/XvVideoNotify.3)

libXv 1.0.13 X Version 11

---

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