nvcodec: leave g_once_init when all quarks are initialized

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1782>
This commit is contained in:
Julian Bouzas 2020-10-30 14:07:02 +00:00 committed by GStreamer Merge Bot
parent 5342b05390
commit 168b5f6536

View file

@ -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);
}
}