XvStopVideo(3)
π XvStopVideo(3) β the libXv girlies' guide to β¨stopping videoβ¨
okay so bestie, welcome to XvStopVideo, a lil function from the libXv crew (that's the X Version 11 manual, section 3, iykyk). if you've got video playing on an X port and you need it to stop like right now, this is literally your girl. let's get into it π
πΈ NAME πΈ
XvStopVideo β stop active video. that's it, that's the whole vibe. short, iconic, does exactly what it says on the tin π«Ά
β¨ SYNOPSIS β¨
#include <X11/extensions/Xvlib.h>
int XvStopVideo(Display *dpy, XvPortID port, Drawable draw);
three args, one int coming back at you. no cap. π
π¦ ARGUMENTS π¦
dpyβ the connection to the X server. your whole line to the mothership, basically. π‘portβ the port whose video is getting stopped. this is the one we're shutting down, bestie. πdrawβ the drawable that's associated with the named port. they come as a pair, like us. π―ββοΈ
π DESCRIPTION π
so XvStopVideo(3) stops the active video for the port and drawable you specified. simple, clean, slay.
but here's the tea β β it's kinda picky, and honestly? respect. if the port isn't processing video at all, or if it is processing video but in a different drawable, the request just gets ignored. not an error, not a crash, just... silence. ghosted. π
when video actually does stop, an XvVideoNotify(3) event gets generated for the associated drawable, with detail XvStopped. so your event loop gets the little notification and it's like "oh periodt, we're done here." π
π RETURN VALUES π
[Success]β returned ifXvStopVideo(3)completed successfully. the good ending. the main character moment. β¨[XvBadExtension]β returned if the Xv extension is unavailable. like showing up to the party and the party isn't there. π[XvBadAlloc]β returned ifXvStopVideo(3)failed to allocate memory to process the request. the memory said no and honestly, mood. π
π₯ DIAGNOSTICS π₯
these are the dramatic ones, bestie. they don't come back to you, they get generated.
[XvBadPort]β generated if the requested port does not exist. that port is not real, girl. it never was. π[BadDrawable]β generated if the requested drawable does not exist. same energy, different name. ghost drawable, no notes. π»
fr fr, if you're hitting these, check your port and drawable values before you blame the library. it's giving "user error" and we've all been there π«Ά
π SEE ALSO π
the whole squad, go read them too, they're all bangers. π
okay that's the page!! this was libXv 1.0.13 from the X Version 11 distribution, so if you see those numbers floating around in your man output, that's me, that's my signature π
β¨ bye bestie, go stop some video, you're gonna ate it up ππ¦
π¦ where this page comes from
- alpine 3.22: libxv-doc 1.0.13-r0 Β· MIT
- alpine 3.23: libxv-doc 1.0.13-r0 Β· MIT
- alpine 3.24: libxv-doc 1.0.13-r0 Β· MIT
- arch rolling: libxv 1.0.13-1 Β· SMLNJ AND HPND-sell-variant
- fedora 43: libXv-devel 1.0.13-3.fc43 Β· SMLNJ AND HPND-sell-variant
- fedora 43: libXv-devel 1.0.13-3.fc43 Β· SMLNJ AND HPND-sell-variant
- fedora 44: libXv-devel 1.0.13-4.fc44 Β· SMLNJ AND HPND-sell-variant
- fedora 44: libXv-devel 1.0.13-4.fc44 Β· SMLNJ AND HPND-sell-variant
- ubuntu resolute: libxv-dev 2:1.0.13-1 Β· MIT
- ubuntu stonking: libxv-dev 2:1.0.13-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms