From 7f01fee8c221f33a517c3e7719e6a97c40d4b489 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 3 Mar 2019 12:36:31 -0800 Subject: [PATCH] libobs: Always query shared texture handle for encoding Always query the texture's shared handle in case the texture had to be rebuilt from a driver crash. --- libobs/obs-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-video.c b/libobs/obs-video.c index e03bfb9e7..7601e6d0c 100644 --- a/libobs/obs-video.c +++ b/libobs/obs-video.c @@ -440,12 +440,12 @@ static inline bool queue_frame(struct obs_core_video *video, bool raw_active, tf.tex = tex; tf.tex_uv = tex_uv; - tf.handle = gs_texture_get_shared_handle(tex); } tf.count = 1; tf.timestamp = vframe_info->timestamp; tf.released = true; + tf.handle = gs_texture_get_shared_handle(tf.tex); gs_texture_release_sync(tf.tex, ++tf.lock_key); circlebuf_push_back(&video->gpu_encoder_queue, &tf, sizeof(tf));