make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should be handled by...
authorThomas Vander Stichele <thomas@apestaart.org>
Sat, 20 Aug 2005 20:30:36 +0000 (20:30 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sat, 20 Aug 2005 20:30:36 +0000 (20:30 +0000)
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
gst/gstelement.h

index 75ba849f6debeda23acc02727174661b8337b69f..4d248dcd59dda3b2cda200a23086f5ab2d77f47e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-20  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * 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  <thomas at apestaart dot org>
 
        * check/Makefile.am:
index 39d99652e9c00f5a3c4a55fe30392674fabe8509..19374566aa852797dbf7baa98c19fc73163108d6 100644 (file)
@@ -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__);                     \