This commit is contained in:
purplerain 2024-10-06 22:00:57 +00:00
parent 50c8bafd9f
commit ac06c97e30
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
820 changed files with 467502 additions and 386453 deletions

View file

@ -66,7 +66,7 @@ findname(XvAttribute table[], int nattr, const char *name)
int i;
if (strncasecmp(name, "XV_", 3) == 0)
name +=3;
name +=3;
for (i = 0; i < nattr; i++) {
if (strcasecmp(table[i].name+3, name) == 0)
return table+i;
@ -108,7 +108,7 @@ setvar(Display *dpy, XvPortID id, int nflag, XvAttribute table[], int nattr,
Atom atom;
at = findname(table, nattr, name);
if (!at)
if (!at)
return;
if (!(at->flags & XvSettable)) {
warnx("Can't set %s", name);
@ -229,7 +229,7 @@ main(int argc, char *argv[])
if (!dpy)
errx(1, "Unable to open display %s", displayname(display));
if (Success != XvQueryExtension(dpy, &ver, &rev, &reqB, &eventB,
&errorB))
&errorB))
errx(1, "No X-Video extension on %s", displayname(display));
if (!nflag)