gstinfo: Simplify gst_debug_reset_threshold() implementation
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Tue, 27 Mar 2018 08:15:46 +0000 (10:15 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 5 Apr 2018 09:52:13 +0000 (10:52 +0100)
commitc4ff06986442fe50f424161220ccb31db758b797
treef69b2371d31aaf574a17ff2dc967425e1ca3cd07
parentb12df466f2075bb85b684cd8872127e4022e58ab
gstinfo: Simplify gst_debug_reset_threshold() implementation

Replace the while+goto with a for+break and check walk to determine
whether we had a match. Move up the unlock to keep the locked section as
small as possible.

https://bugzilla.gnome.org/show_bug.cgi?id=794717
gst/gstinfo.c