Minor optimisation: check category log level earlier in the
log function dispatcher and not only in the default log
function.
https://bugzilla.gnome.org/show_bug.cgi?id=745213
GSList *handler;
g_return_if_fail (category != NULL);
+
+ if (level > gst_debug_category_get_threshold (category))
+ return;
+
g_return_if_fail (file != NULL);
g_return_if_fail (function != NULL);
g_return_if_fail (format != NULL);
FILE *log_file = user_data ? user_data : stderr;
gchar c;
- if (level > gst_debug_category_get_threshold (category))
- return;
-
/* __FILE__ might be a file name or an absolute path or a
* relative path, irrespective of the exact compiler used,
* in which case we want to shorten it to the filename for