From 5d80bd886c1489a1a97b8982517d53e9b259f988 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Mar 2023 12:10:16 +0100 Subject: Move video encoding to separate thread, remove pixel_format that doesn't do anything and was bugged --- src/capture/xcomposite_cuda.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/capture/xcomposite_cuda.c') 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) { -- cgit v1.2.3