libs/gst/check/gstcheck.c: Intercept criticals and warnings in the Gst-Phonon log domain, so

Original commit message from CVS:
* libs/gst/check/gstcheck.c: (gst_check_init):
Intercept criticals and warnings in the Gst-Phonon log domain, so
ASSERT_CRITICAL() etc. can be used in gst-phonon's unit tests as
well.
This commit is contained in:
Tim-Philipp Müller 2007-06-14 17:36:19 +00:00
parent 032bd4cbd8
commit b896ba8452
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2007-06-14 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/check/gstcheck.c: (gst_check_init):
Intercept criticals and warnings in the Gst-Phonon log domain, so
ASSERT_CRITICAL() etc. can be used in gst-phonon's unit tests as
well.
2007-06-14 Edward Hervey <edward@fluendo.com>
* gst/gstparamspecs.c: (_gst_param_fraction_validate):

View file

@ -95,6 +95,8 @@ gst_check_init (int *argc, char **argv[])
gst_check_log_critical_func, NULL);
g_log_set_handler ("GLib-GObject", G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING,
gst_check_log_critical_func, NULL);
g_log_set_handler ("Gst-Phonon", G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING,
gst_check_log_critical_func, NULL);
check_cond = g_cond_new ();
check_mutex = g_mutex_new ();