change NULL to (NULL) for GST_ELEMENT_ERROR
[platform/upstream/gst-plugins-good.git] / ext / esd / esdsink.c
index e887a16..4672ab7 100644 (file)
@@ -255,7 +255,7 @@ gst_esdsink_chain (GstPad *pad, GstData *_data)
   esdsink = GST_ESDSINK (gst_pad_get_parent (pad));
 
   if (!esdsink->negotiated) {
-    GST_ELEMENT_ERROR (esdsink, CORE, NEGOTIATION, NULL,
+    GST_ELEMENT_ERROR (esdsink, CORE, NEGOTIATION, (NULL),
                        ("element wasn't negotiated before chain function"));
     goto done;
   }
@@ -394,7 +394,7 @@ gst_esdsink_open_audio (GstEsdsink *sink)
   if (sink->depth == 16) esdformat |= ESD_BITS16;
   else if (sink->depth == 8) esdformat |= ESD_BITS8;
   else {
-    GST_ELEMENT_ERROR (sink, STREAM, FORMAT, NULL,
+    GST_ELEMENT_ERROR (sink, STREAM, FORMAT, (NULL),
                        ("invalid bit depth (%d)", sink->depth));
     return FALSE;
   }
@@ -402,7 +402,7 @@ gst_esdsink_open_audio (GstEsdsink *sink)
   if (sink->channels == 2) esdformat |= ESD_STEREO;
   else if (sink->channels == 1) esdformat |= ESD_MONO;
   else {
-    GST_ELEMENT_ERROR (sink, STREAM, FORMAT, NULL,
+    GST_ELEMENT_ERROR (sink, STREAM, FORMAT, (NULL),
                        ("invalid number of channels (%d)", sink->channels));
     return FALSE;
   }
@@ -414,7 +414,7 @@ gst_esdsink_open_audio (GstEsdsink *sink)
     sink->fd = esd_play_stream(esdformat, sink->frequency, sink->host, connname);
   }
   if ( sink->fd < 0 ) {
-    GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, NULL,
+    GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, (NULL),
                        ("can't open connection to esound server"));
     return FALSE;
   }