From 79bc3ebfa12cd6913654b168ad8d1591fa46097c Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 2 Feb 2004 17:23:33 +0000 Subject: change NULL to (NULL) for GST_ELEMENT_ERROR Original commit message from CVS: change NULL to (NULL) for GST_ELEMENT_ERROR Make sure errors end with "." --- ext/esd/esdmon.c | 2 +- ext/esd/esdsink.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ext/esd') diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c index 6fd9c194..25e9df81 100644 --- a/ext/esd/esdmon.c +++ b/ext/esd/esdmon.c @@ -267,7 +267,7 @@ gst_esdmon_get (GstPad *pad) "channels", G_TYPE_INT, esdmon->channels )) <= 0) { - GST_ELEMENT_ERROR (esdmon, CORE, NEGOTIATION, NULL, NULL); + GST_ELEMENT_ERROR (esdmon, CORE, NEGOTIATION, (NULL), (NULL)); return NULL; } } diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c index e887a165..4672ab79 100644 --- a/ext/esd/esdsink.c +++ b/ext/esd/esdsink.c @@ -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; } -- cgit