fixed CIDs 393106-393108

This commit is contained in:
Martin Pulec
2022-05-20 08:42:13 +02:00
parent c2902609ea
commit 65ca72eb24
3 changed files with 4 additions and 4 deletions

View File

@@ -178,7 +178,7 @@ GLuint glsl_compile_link(const char *vprogram, const char *fprogram)
if (strlen(log) > 0) {
log_msg(LOG_LEVEL_INFO, "Vertex compile log: %s\n", log);
}
glGetShaderiv(fhandle, GL_COMPILE_STATUS, &status);
glGetShaderiv(vhandle, GL_COMPILE_STATUS, &status);
assert(status == GL_TRUE);
}

View File

@@ -656,7 +656,7 @@ static CURL *init_curl() {
fprintf(stderr, "[rtsp] curl_easy_init() failed\n");
return NULL;
}
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
my_curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1, );
return curl;
}

View File

@@ -143,8 +143,8 @@ static bool initialize(struct vidcap_screen_x11_state *s) {
XGetWindowAttributes(s->dpy, DefaultRootWindow(s->dpy), &wa);
s->tile->width = IF_NOT_NULL_ELSE(MIN(s->width, wa.width), wa.width);
s->tile->height = IF_NOT_NULL_ELSE(MIN(s->height, wa.height), wa.height);
s->x = MAX(0, MIN(s->x, wa.width - s->tile->width));
s->y = MAX(0, MIN(s->y, wa.height - s->tile->height));
s->x = MIN(s->x, wa.width - (int) s->tile->width);
s->y = MIN(s->y, wa.height - (int) s->tile->height);
pthread_mutex_init(&s->lock, NULL);
pthread_cond_init(&s->boss_cv, NULL);