mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 09:12:19 +00:00
autoconvert: Fix lock-less exchange or free condition
Before this change, we would free the list we just have saved. Fixes #1158
This commit is contained in:
parent
c7fe1e8164
commit
416728f213
1 changed files with 1 additions and 1 deletions
|
@ -895,7 +895,7 @@ gst_auto_convert_load_factories (GstAutoConvert * autoconvert)
|
||||||
|
|
||||||
g_assert (all_factories);
|
g_assert (all_factories);
|
||||||
|
|
||||||
if (g_atomic_pointer_compare_and_exchange (&autoconvert->factories, NULL,
|
if (!g_atomic_pointer_compare_and_exchange (&autoconvert->factories, NULL,
|
||||||
all_factories)) {
|
all_factories)) {
|
||||||
gst_plugin_feature_list_free (all_factories);
|
gst_plugin_feature_list_free (all_factories);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue