From 8d5a42c2338308e540fb3673b0075c0c0b14fdc4 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 24 Apr 2020 23:03:40 +1000 Subject: [PATCH] [obs] fix potential deadlock --- VERSION | 2 +- obs/lg.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index b2eeb426..2c0fe9ab 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-182-g041a6c3cf6+1 \ No newline at end of file +B1-184-g00a41be413+1 \ No newline at end of file diff --git a/obs/lg.c b/obs/lg.c index 7514acbc..b55ad772 100644 --- a/obs/lg.c +++ b/obs/lg.c @@ -229,6 +229,7 @@ static void lgVideoTick(void * data, float seconds) case FRAME_TYPE_RGBA10: format = GS_R10G10B10A2; break; default: printf("invalid type %d\n", this->type); + os_sem_post(this->frameSem); obs_leave_graphics(); return; } @@ -239,6 +240,7 @@ static void lgVideoTick(void * data, float seconds) if (!this->texture) { printf("create texture failed\n"); + os_sem_post(this->frameSem); obs_leave_graphics(); return; }