gstinfo: fix debug levels being applied in the wrong order
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Tue, 27 Mar 2018 08:25:46 +0000 (10:25 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 5 Apr 2018 10:00:09 +0000 (11:00 +0100)
commit6436437d836badb1f01f71cf039fa65e4a3a2023
tree8a78fc0e159abef298fcf15cac07d1cf8dd153fa
parentc4ff06986442fe50f424161220ccb31db758b797
gstinfo: fix debug levels being applied in the wrong order

Remove unneeded reapplication of patterns. Besides being
superfluous (gst_debug_reset_threshold already applies
patterns) it was also wrong and didn't stop checking patterns
after the first match (broken in 67e9d139).

Also fix up unit test which checked for the wrong order.

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