gstinfo: Reduce code duplication around level pattern matching
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Tue, 27 Mar 2018 08:14:27 +0000 (10:14 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 5 Apr 2018 09:52:13 +0000 (10:52 +0100)
commitb12df466f2075bb85b684cd8872127e4022e58ab
treebd43f9ad2f5ca570f8cdb7fc2d023305c652b771
parent8117a294083c52995875c60fde36675b7754e91d
gstinfo: Reduce code duplication around level pattern matching

Move the match, logging and set_threshold to a new function.

The log levels are different, so choose the higher one (LOG). Having two
equivalent messages at two different levels seems like a bad idea
anyway.

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