mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
5342b05390
commit
168b5f6536
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue