From de0f40c257c423a019e56a2d4859e3618cdd61a3 Mon Sep 17 00:00:00 2001
From: Alexandre Janniaux <ajanni@videolabs.io>
Date: Mon, 22 Jan 2024 15:30:40 +0100
Subject: [PATCH] input: decoder: fix typo on Lock/Unlock

We're supposed to unlock after the error, given that the lock is just
above.

Regression from 7dcc370d120266ca552433b0b419f1e65f194f5c.
---
 src/input/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 728334485223..4a62457b87e9 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -901,7 +901,7 @@ static subpicture_t *ModuleThread_NewSpuBuffer( decoder_t *p_dec,
 
             vout_Release(p_owner->p_vout);
             p_owner->p_vout = NULL; // the DecoderThread should not use the old vout anymore
-            vlc_fifo_Lock( p_owner->p_fifo );
+            vlc_fifo_Unlock( p_owner->p_fifo );
         }
         return NULL;
     }
-- 
GitLab