aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_decoder.c')
-rw-r--r--test/run_decoder.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/run_decoder.c b/test/run_decoder.c
index 72e0783f0..47cab2aac 100644
--- a/test/run_decoder.c
+++ b/test/run_decoder.c
@@ -30,6 +30,16 @@
#include <assert.h>
#include <unistd.h>
+static void
+my_log_func(const gchar *log_domain, G_GNUC_UNUSED GLogLevelFlags log_level,
+ const gchar *message, G_GNUC_UNUSED gpointer user_data)
+{
+ if (log_domain != NULL)
+ g_printerr("%s: %s\n", log_domain, message);
+ else
+ g_printerr("%s\n", message);
+}
+
/**
* No-op dummy.
*/
@@ -139,6 +149,8 @@ int main(int argc, char **argv)
decoder_name = argv[1];
decoder.uri = argv[2];
+ g_log_set_default_handler(my_log_func, NULL);
+
input_stream_global_init();
decoder_plugin_init_all();