From 168b5f6536969e623b52dffef193690c589a41ae Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Fri, 30 Oct 2020 14:07:02 +0000 Subject: [PATCH] nvcodec: leave g_once_init when all quarks are initialized Part-of: --- sys/nvcodec/gstcudautils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/nvcodec/gstcudautils.c b/sys/nvcodec/gstcudautils.c index 6510eda..0525902 100644 --- a/sys/nvcodec/gstcudautils.c +++ b/sys/nvcodec/gstcudautils.c @@ -359,12 +359,11 @@ init_cuda_quark_once (void) if (g_once_init_enter (&once_init)) { gint i; - for (i = 0; i < GST_CUDA_QUARK_MAX; i++) { + for (i = 0; i < GST_CUDA_QUARK_MAX; i++) gst_cuda_quark_table[i] = g_quark_from_static_string (gst_cuda_quark_strings[i]); - g_once_init_leave (&once_init, 1); - } + g_once_init_leave (&once_init, 1); } } -- 2.7.4