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:
Jason Litzinger 2015-04-22 12:03:33 -06:00 committed by Tim-Philipp Müller
parent f728c68d91
commit db765a5fb8

View file

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