From feb446c5d49ce46b9e54971bcafcbeace6e3cb93 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 20 Aug 2005 20:30:36 +0000 Subject: [PATCH] make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should be handled by the application and not always pri... Original commit message from CVS: make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should be handled by the application and not always printed as well --- ChangeLog | 6 ++++++ gst/gstelement.h | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75ba849..4d248dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2005-08-20 Thomas Vander Stichele + * gst/gstelement.h: + make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should + be handled by the application and not always printed as well + +2005-08-20 Thomas Vander Stichele + * check/Makefile.am: set GST_TOOLS_DIR * gst/check/gstcheck.c: (gst_check_message_error): diff --git a/gst/gstelement.h b/gst/gstelement.h index 39d9965..1937456 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -128,9 +128,9 @@ G_STMT_START { \ gchar *__txt = _gst_element_error_printf text; \ gchar *__dbg = _gst_element_error_printf debug; \ if (__txt) \ - GST_ERROR_OBJECT (el, "%s", __txt); \ + GST_WARNING_OBJECT (el, "error: %s", __txt); \ if (__dbg) \ - GST_ERROR_OBJECT (el, "%s", __dbg); \ + GST_WARNING_OBJECT (el, "error: %s", __dbg); \ gst_element_message_full (GST_ELEMENT(el), GST_MESSAGE_ERROR, \ GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \ __txt, __dbg, __FILE__, GST_FUNCTION, __LINE__); \ @@ -142,9 +142,9 @@ G_STMT_START { \ gchar *__txt = _gst_element_error_printf text; \ gchar *__dbg = _gst_element_error_printf debug; \ if (__txt) \ - GST_WARNING_OBJECT (el, "%s", __txt); \ + GST_WARNING_OBJECT (el, "warning: %s", __txt); \ if (__dbg) \ - GST_WARNING_OBJECT (el, "%s", __dbg); \ + GST_WARNING_OBJECT (el, "warning: %s", __dbg); \ gst_element_message_full (GST_ELEMENT(el), GST_MESSAGE_WARNING, \ GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \ __txt, __dbg, __FILE__, GST_FUNCTION, __LINE__); \ -- 2.7.4