XvUngrabPort(3)
π XvUngrabPort β the "okay bestie, you can have the port back" era π
So this is XvUngrabPort(3) from the libXv family of functions, and honestly? It's giving release-the-grip. Let's get into it, fr fr.
β¨ NAME β¨
XvUngrabPort β release a port you grabbed for video operation π
β¨ SYNOPSIS β¨
#include <X11/extensions/Xvlib.h>
int XvUngrabPort(Display *dpy, XvPortID port, Time time);
β¨ ARGUMENTS β¨
dpyβ the connection to the X server. your lil phone line to the server, basically πportβ the port you want released. and listen: if that port wasn't previously grabbed, the request just gets ignored. no drama, no error, it simply doesn't engage π«Άtimeβ the request timestamp. yes, timing matters here, we'll get to that π
β¨ DESCRIPTION β¨
Okay so XvUngrabPort(3) releases a grabbed port. That's the whole job, she's a one-task queen. π
But here's the plot twist: if time specifies a time before the last XvGrabPort(3) was executed, the request is ignored. So if your timestamp is giving "yesterday's news", nothing happens. periodt. π°οΈ
β¨ RETURN VALUES β¨
[Success]β returned ifXvUngrabPort(3)completed successfully. slay, we love a clean finish β¨[XvBadExtension]β returned if the Xv extension is unavailable. like, the whole extension is just not there π[XvBadAlloc]β returned ifXvUngrabPort(3)failed to allocate memory to process the request. ran out of memory, tragic π
β¨ DIAGNOSTICS β¨
[XvBadPort]β generated if the requested port does not exist. you asked for a port that simply isn't a thing, bestie π
β¨ SEE ALSO β¨
XvGrabPort(3) β the other half of this situationship, the one that grabs π§
ngl the whole vibe here is: grab it, then ungrab it, and don't be weird about timestamps. iykyk πΈ
okay that's the whole page, bestie β mwah π this one comes to you from X Version 11, libXv 1.0.13, and it's an XvUngrabPort(3) original. take care of your ports, release them responsibly, and stay iconic ππ
π¦ 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