mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
gstinfo: fix infinite loop in gst_debug_unset_threshold_for_name()
Ensure iterator is advanced. The current list iteration code only advances the iterator (walk) if a match is found, which results in an infinite loop when more than one entry exists in the list. https://bugzilla.gnome.org/show_bug.cgi?id=748321
This commit is contained in:
parent
f728c68d91
commit
db765a5fb8
1 changed files with 2 additions and 0 deletions
|
@ -1507,6 +1507,8 @@ gst_debug_unset_threshold_for_name (const gchar * name)
|
|||
g_slice_free (LevelNameEntry, entry);
|
||||
g_slist_free_1 (walk);
|
||||
walk = __level_name;
|
||||
} else {
|
||||
walk = g_slist_next (walk);
|
||||
}
|
||||
}
|
||||
g_mutex_unlock (&__level_name_mutex);
|
||||
|
|
Loading…
Reference in a new issue