mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
validate: Make sure to at least listen to GStreamer and GLib g_logs
If somewhere else someone is overriding the g_log default handler, we would not get notified of anything.
This commit is contained in:
parent
ccbcc04498
commit
36aed39259
1 changed files with 10 additions and 0 deletions
|
@ -322,6 +322,16 @@ gst_validate_reporter_set_handle_g_logs (GstValidateReporter * reporter)
|
|||
g_log_set_default_handler ((GLogFunc) gst_validate_reporter_g_log_func,
|
||||
reporter);
|
||||
|
||||
g_log_set_handler ("GStreamer",
|
||||
G_LOG_LEVEL_MASK, (GLogFunc) gst_validate_reporter_g_log_func, reporter);
|
||||
|
||||
g_log_set_handler ("GLib",
|
||||
G_LOG_LEVEL_MASK, (GLogFunc) gst_validate_reporter_g_log_func, reporter);
|
||||
|
||||
|
||||
g_log_set_handler ("GLib-GObject",
|
||||
G_LOG_LEVEL_MASK, (GLogFunc) gst_validate_reporter_g_log_func, reporter);
|
||||
|
||||
g_log_handler = gst_validate_reporter_get_priv (reporter);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue