diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-18 21:46:58 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-18 21:46:58 +0000 |
commit | 3b0cf935f687c359319104d7b0dd7d73c90da6a9 (patch) | |
tree | fc4cb9722017426795998bce5cb783e6eaae0365 /ext/flac/gstflacenc.c | |
parent | 272db0c22e45b45e88f11a52b793bab588a02534 (diff) |
use new error signal and classification
Original commit message from CVS:
use new error signal and classification
Diffstat (limited to 'ext/flac/gstflacenc.c')
-rw-r--r-- | ext/flac/gstflacenc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 4d5e19a5..d8bfe509 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -549,8 +549,8 @@ gst_flacenc_chain (GstPad *pad, GstData *_data) } if (!flacenc->negotiated) { - gst_element_error (GST_ELEMENT (flacenc), - "format not negotiated"); + gst_element_error (flacenc, CORE, NEGOTIATION, NULL, + ("format wasn't negotiated before chain function")); return; } @@ -575,8 +575,8 @@ 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 (GST_ELEMENT (flacenc), - "could not initialize encoder (wrong parameters?)"); + gst_element_error (flacenc, LIBRARY, INIT, NULL, + ("could not initialize encoder (wrong parameters?)")); return; } } @@ -610,8 +610,7 @@ gst_flacenc_chain (GstPad *pad, GstData *_data) flacenc->data = NULL; if (!res) { - gst_element_error (GST_ELEMENT (flacenc), - "encoding error"); + gst_element_error (flacenc, STREAM, ENCODE, NULL, NULL); } } |