From 726357893f04ad09cce95a2d861344b33c1755c4 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 28 Apr 2006 14:54:45 +0000 Subject: [PATCH] gst/gstmodule.c: Wrap the gstreamer error domains quark. Original commit message from CVS: * gst/gstmodule.c: (init_gst): Wrap the gstreamer error domains quark. Fixes #339040 --- ChangeLog | 8 +++++++- gst/gstmodule.c | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9e89409342..cb576ca853 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +2006-04-28 Edward Hervey + + * gst/gstmodule.c: (init_gst): + Wrap the gstreamer error domains quark. + Fixes #339040 + 2006-04-19 Andy Wingo - * gst/gstpad.override (pad_block_callback_marshal) + * gst/gstpad.override: (pad_block_callback_marshal) (_wrap_gst_pad_set_blocked_async): Fix refcounting problems and indent. Fixes #338982 diff --git a/gst/gstmodule.c b/gst/gstmodule.c index 13e025e745..adc7f98ae9 100644 --- a/gst/gstmodule.c +++ b/gst/gstmodule.c @@ -236,6 +236,11 @@ init_gst (void) PyModule_AddStringConstant (m, "TAG_ALBUM_PEAK", GST_TAG_ALBUM_PEAK); PyModule_AddStringConstant (m, "TAG_LANGUAGE_CODE", GST_TAG_LANGUAGE_CODE); + PyModule_AddStringConstant (m, "LIBRARY_ERROR", (gchar *) g_quark_to_string(GST_LIBRARY_ERROR)); + PyModule_AddStringConstant (m, "RESOURCE_ERROR",(gchar *) g_quark_to_string(GST_RESOURCE_ERROR)); + PyModule_AddStringConstant (m, "CORE_ERROR", (gchar *) g_quark_to_string(GST_CORE_ERROR)); + PyModule_AddStringConstant (m, "STREAM_ERROR", (gchar *) g_quark_to_string(GST_STREAM_ERROR)); + g_timeout_add_full (0, 100, python_do_pending_calls, NULL, NULL); atexit(gst_deinit);