diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-02-02 17:23:33 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-02-02 17:23:33 +0000 |
commit | 79bc3ebfa12cd6913654b168ad8d1591fa46097c (patch) | |
tree | da9a78ba712c51bc62830d695291f736e8551b02 /ext/flac | |
parent | a47dc77f1899c53c28ad4f1c0c72d4b47488cae3 (diff) |
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 "."
Diffstat (limited to 'ext/flac')
-rw-r--r-- | ext/flac/gstflacdec.c | 4 | ||||
-rw-r--r-- | ext/flac/gstflacenc.c | 2 | ||||
-rw-r--r-- | ext/flac/gstflactag.c | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index efffa002..094d349a 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -305,7 +305,7 @@ gst_flacdec_error_callback (const FLAC__SeekableStreamDecoder *decoder, break; } - GST_ELEMENT_ERROR (flacdec, STREAM, DECODE, NULL, (error)); + GST_ELEMENT_ERROR (flacdec, STREAM, DECODE, (NULL), (error)); } static FLAC__SeekableStreamDecoderSeekStatus @@ -535,7 +535,7 @@ gst_flacdec_loop (GstElement *element) GST_DEBUG ("flacdec: initializing decoder"); res = FLAC__seekable_stream_decoder_init (flacdec->decoder); if (res != FLAC__SEEKABLE_STREAM_DECODER_OK) { - GST_ELEMENT_ERROR (flacdec, LIBRARY, INIT, NULL, + GST_ELEMENT_ERROR (flacdec, LIBRARY, INIT, (NULL), (FLAC__SeekableStreamDecoderStateString[res])); return; } diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index df90c448..49950ab7 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -549,7 +549,7 @@ gst_flacenc_chain (GstPad *pad, GstData *_data) } if (!flacenc->negotiated) { - GST_ELEMENT_ERROR (flacenc, CORE, NEGOTIATION, NULL, + GST_ELEMENT_ERROR (flacenc, CORE, NEGOTIATION, (NULL), ("format wasn't negotiated before chain function")); return; } diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c index b5a780b7..a72313bd 100644 --- a/ext/flac/gstflactag.c +++ b/ext/flac/gstflactag.c @@ -295,7 +295,7 @@ gst_flac_tag_chain (GstPad *pad, GstData *data) gst_buffer_unref (sub); } else { /* FIXME: does that work well with FLAC files containing ID3v2 tags ? */ - GST_ELEMENT_ERROR (tag, STREAM, WRONG_TYPE, NULL, NULL); + GST_ELEMENT_ERROR (tag, STREAM, WRONG_TYPE, (NULL), (NULL)); } } @@ -464,7 +464,7 @@ gst_flac_tag_chain (GstPad *pad, GstData *data) g_warning ("No tags found\n"); buffer = gst_buffer_new_and_alloc (12); if (buffer == NULL) { - GST_ELEMENT_ERROR (tag, CORE, TOO_LAZY, NULL, + GST_ELEMENT_ERROR (tag, CORE, TOO_LAZY, (NULL), ("Error creating 12-byte buffer for padding block")); } bzero (GST_BUFFER_DATA (buffer), GST_BUFFER_SIZE (buffer)); @@ -481,7 +481,7 @@ gst_flac_tag_chain (GstPad *pad, GstData *data) sizeof (header), NULL); gst_tag_list_free (merged_tags); if (buffer == NULL) { - GST_ELEMENT_ERROR (tag, CORE, TAG, NULL, ("Error converting tag list to vorbiscomment buffer")); + GST_ELEMENT_ERROR (tag, CORE, TAG, (NULL), ("Error converting tag list to vorbiscomment buffer")); return; } size = GST_BUFFER_SIZE (buffer) - 4; @@ -490,7 +490,7 @@ gst_flac_tag_chain (GstPad *pad, GstData *data) * while the vorbis specs allow more than that. Shouldn't * be a real world problem though */ - GST_ELEMENT_ERROR (tag, CORE, TAG, NULL, ("Vorbis comment of size %d too long", size)); + GST_ELEMENT_ERROR (tag, CORE, TAG, (NULL), ("Vorbis comment of size %d too long", size)); return; } } |