summaryrefslogtreecommitdiffstats
path: root/ext/flac
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2003-09-16 10:00:02 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2003-09-16 10:00:02 +0000
commit54b0fe0f9472e1e6554dba0b9697151a9ef319a3 (patch)
tree2f0cb83625c9c8332600418933f0b6690fd6869e /ext/flac
parent8817348af768345a644ed05f621f1b5392f325a0 (diff)
reverting error patch before making a branch.
Original commit message from CVS: reverting error patch before making a branch.
Diffstat (limited to 'ext/flac')
-rw-r--r--ext/flac/gstflacdec.c4
-rw-r--r--ext/flac/gstflacenc.c15
2 files changed, 7 insertions, 12 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 5431a84f..c11be9f6 100644
--- a/ext/flac/gstflacdec.c
+++ b/ext/flac/gstflacdec.c
@@ -291,9 +291,7 @@ gst_flacdec_error_callback (const FLAC__SeekableStreamDecoder *decoder,
GST_DEBUG (error);
- gst_element_gerror(GST_ELEMENT (flacdec), GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf(error));
+ gst_element_error (GST_ELEMENT (flacdec), error);
}
static FLAC__SeekableStreamDecoderSeekStatus
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c
index e217d9c7..ef9e5386 100644
--- a/ext/flac/gstflacenc.c
+++ b/ext/flac/gstflacenc.c
@@ -512,9 +512,8 @@ gst_flacenc_chain (GstPad *pad, GstBuffer *buf)
}
if (!flacenc->negotiated) {
- gst_element_gerror(GST_ELEMENT (flacenc), GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf("format not negotiated"));
+ gst_element_error (GST_ELEMENT (flacenc),
+ "format not negotiated");
return;
}
@@ -531,9 +530,8 @@ gst_flacenc_chain (GstPad *pad, GstBuffer *buf)
gst_flacenc_set_metadata (flacenc, flacenc->metadata);
state = FLAC__seekable_stream_encoder_init (flacenc->encoder);
if (state != FLAC__STREAM_ENCODER_OK) {
- gst_element_gerror(GST_ELEMENT (flacenc), GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf("could not initialize encoder (wrong parameters?)"));
+ gst_element_error (GST_ELEMENT (flacenc),
+ "could not initialize encoder (wrong parameters?)");
return;
}
}
@@ -567,9 +565,8 @@ gst_flacenc_chain (GstPad *pad, GstBuffer *buf)
flacenc->data = NULL;
if (!res) {
- gst_element_gerror(GST_ELEMENT (flacenc), GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf ("encoding error"));
+ gst_element_error (GST_ELEMENT (flacenc),
+ "encoding error");
}
}