gst/gstelement.h: Don't GST_ERROR_OBJECT smpty strings - Solaris doesn't like NULL...
authorBenjamin Otte <otte@gnome.org>
Thu, 15 Jul 2004 02:26:48 +0000 (02:26 +0000)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Jul 2004 02:26:48 +0000 (02:26 +0000)
Original commit message from CVS:
* gst/gstelement.h:
Don't GST_ERROR_OBJECT smpty strings - Solaris doesn't like NULL
strings.
* gst/gstelement.c (gst_element_class_init):
GError's are boxed, not objects
* gst/gstmarshal.list:
update list for the fixed error signal

ChangeLog
gst/gstelement.c
gst/gstelement.h
gst/gstmarshal.list

index 748a77d..41486a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2004-07-15  Benjamin Otte  <otte@gnome.org>
+
+       * gst/gstelement.h: 
+         Don't GST_ERROR_OBJECT smpty strings - Solaris doesn't like NULL
+         strings.
+       * gst/gstelement.c (gst_element_class_init):
+         GError's are boxed, not objects
+       * gst/gstmarshal.list:
+         update list for the fixed error signal
+
 2004-07-14  Andy Wingo  <wingo@pobox.com>
 
        * gst/gsttag.c: Add a tag merge func for pointers. The header was
index d1772f8..e0973f0 100644 (file)
@@ -139,7 +139,7 @@ gst_element_class_init (GstElementClass * klass)
   gst_element_signals[ERROR] =
       g_signal_new ("error", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
       G_STRUCT_OFFSET (GstElementClass, error), NULL, NULL,
-      gst_marshal_VOID__OBJECT_OBJECT_STRING, G_TYPE_NONE, 3, GST_TYPE_ELEMENT,
+      gst_marshal_VOID__OBJECT_BOXED_STRING, G_TYPE_NONE, 3, GST_TYPE_ELEMENT,
       GST_TYPE_G_ERROR, G_TYPE_STRING);
   gst_element_signals[EOS] =
       g_signal_new ("eos", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
index e196a0d..4fee1b9 100644 (file)
@@ -143,7 +143,9 @@ typedef enum {
 #define GST_ELEMENT_ERROR(el, domain, code, message, debug) G_STMT_START { \
   gchar *__msg = _gst_element_error_printf message; \
   gchar *__dbg = _gst_element_error_printf debug; \
-  GST_ERROR_OBJECT (el, "%s", __msg); \
+  if (__msg) \
+    GST_ERROR_OBJECT (el, "%s", __msg); \
+  if (__dbg) \
   GST_ERROR_OBJECT (el, "%s", __dbg); \
   gst_element_error_full (GST_ELEMENT(el), \
   GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \
index 7ec2067..16f5a05 100644 (file)
@@ -9,6 +9,7 @@ VOID:OBJECT
 VOID:OBJECT,PARAM
 VOID:OBJECT,POINTER
 VOID:OBJECT,BOXED
+VOID:OBJECT,BOXED,STRING
 VOID:OBJECT,OBJECT,STRING
 VOID:OBJECT,STRING
 VOID:INT,INT