make GST_ELEMENT_ERROR not do GST_ERROR_OBJECT - these errors should be...

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
parent 088fed6d
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> 2005-08-20 Thomas Vander Stichele <thomas at apestaart dot org>
* check/Makefile.am: * check/Makefile.am:
......
...@@ -128,9 +128,9 @@ G_STMT_START { \ ...@@ -128,9 +128,9 @@ G_STMT_START { \
gchar *__txt = _gst_element_error_printf text; \ gchar *__txt = _gst_element_error_printf text; \
gchar *__dbg = _gst_element_error_printf debug; \ gchar *__dbg = _gst_element_error_printf debug; \
if (__txt) \ if (__txt) \
GST_ERROR_OBJECT (el, "%s", __txt); \ GST_WARNING_OBJECT (el, "error: %s", __txt); \
if (__dbg) \ 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_element_message_full (GST_ELEMENT(el), GST_MESSAGE_ERROR, \
GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \ GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \
__txt, __dbg, __FILE__, GST_FUNCTION, __LINE__); \ __txt, __dbg, __FILE__, GST_FUNCTION, __LINE__); \
...@@ -142,9 +142,9 @@ G_STMT_START { \ ...@@ -142,9 +142,9 @@ G_STMT_START { \
gchar *__txt = _gst_element_error_printf text; \ gchar *__txt = _gst_element_error_printf text; \
gchar *__dbg = _gst_element_error_printf debug; \ gchar *__dbg = _gst_element_error_printf debug; \
if (__txt) \ if (__txt) \
GST_WARNING_OBJECT (el, "%s", __txt); \ GST_WARNING_OBJECT (el, "warning: %s", __txt); \
if (__dbg) \ 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_element_message_full (GST_ELEMENT(el), GST_MESSAGE_WARNING, \
GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \ GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \
__txt, __dbg, __FILE__, GST_FUNCTION, __LINE__); \ __txt, __dbg, __FILE__, GST_FUNCTION, __LINE__); \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment