summaryrefslogtreecommitdiffstats
path: root/ext/flac
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-01-29 23:20:45 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-01-29 23:20:45 +0000
commit51e5863a97bdfc80b5c2024236f990210f4541f8 (patch)
treea405601ca4a288858cdb43a438f31d5e5969674b /ext/flac
parent9925c8d04217e7e41993ee98fe77ddd02eb857a1 (diff)
GST_ELEMENT_ERROR
Original commit message from CVS: GST_ELEMENT_ERROR
Diffstat (limited to 'ext/flac')
-rw-r--r--ext/flac/gstflacdec.c4
-rw-r--r--ext/flac/gstflacenc.c6
-rw-r--r--ext/flac/gstflactag.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 17a4dda6..b4d857ba 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 d8bfe509..df90c448 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;
}
@@ -575,7 +575,7 @@ gst_flacenc_chain (GstPad *pad, GstData *_data)
gst_flacenc_set_metadata (flacenc);
state = FLAC__seekable_stream_encoder_init (flacenc->encoder);
if (state != FLAC__STREAM_ENCODER_OK) {
- gst_element_error (flacenc, LIBRARY, INIT, NULL,
+ GST_ELEMENT_ERROR (flacenc, LIBRARY, INIT, NULL,
("could not initialize encoder (wrong parameters?)"));
return;
}
@@ -610,7 +610,7 @@ gst_flacenc_chain (GstPad *pad, GstData *_data)
flacenc->data = NULL;
if (!res) {
- gst_element_error (flacenc, STREAM, ENCODE, NULL, NULL);
+ GST_ELEMENT_ERROR (flacenc, STREAM, ENCODE, NULL, NULL);
}
}
diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c
index ac0704b8..b5a780b7 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;
}
}