diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-03-21 12:10:16 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-03-26 19:04:51 +0200 |
commit | 5d80bd886c1489a1a97b8982517d53e9b259f988 (patch) | |
tree | e15f9decbecd74446d5cc56babea370ec08163cf /src/capture | |
parent | 716cb5b4488f99bac2a8f7f89e0077a079e63ac1 (diff) |
Move video encoding to separate thread, remove pixel_format that doesn't do anything and was bugged
Diffstat (limited to 'src/capture')
-rw-r--r-- | src/capture/xcomposite_cuda.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/capture/xcomposite_cuda.c b/src/capture/xcomposite_cuda.c index ecb5c80..bf8a053 100644 --- a/src/capture/xcomposite_cuda.c +++ b/src/capture/xcomposite_cuda.c @@ -372,12 +372,6 @@ static void gsr_capture_xcomposite_cuda_tick(gsr_capture *cap, AVCodecContext *v cap_xcomp->texture_size.x = min_int(video_codec_context->width, max_int(2, cap_xcomp->texture_size.x & ~1)); cap_xcomp->texture_size.y = min_int(video_codec_context->height, max_int(2, cap_xcomp->texture_size.y & ~1)); - if(!cap_xcomp->params.follow_focused) { - cap_xcomp->egl.glBindTexture(GL_TEXTURE_2D, cap_xcomp->target_texture_id); - cap_xcomp->egl.glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, cap_xcomp->texture_size.x, cap_xcomp->texture_size.y, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); - cap_xcomp->egl.glBindTexture(GL_TEXTURE_2D, 0); - } - av_frame_free(frame); *frame = av_frame_alloc(); if(!frame) { |