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 /gst/wavparse | |
parent | 272db0c22e45b45e88f11a52b793bab588a02534 (diff) |
use new error signal and classification
Original commit message from CVS:
use new error signal and classification
Diffstat (limited to 'gst/wavparse')
-rw-r--r-- | gst/wavparse/gstwavparse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 382192a4..e37cbf3c 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -636,7 +636,7 @@ gst_wavparse_parse_fmt (GstWavParse *wavparse, guint size) break; default: - gst_element_error (GST_ELEMENT (wavparse), "wavparse: format %d not handled", wavparse->format); + gst_element_error (wavparse, STREAM, NOT_IMPLEMENTED, NULL, ("format %d not handled", wavparse->format)); return; } @@ -731,7 +731,7 @@ gst_wavparse_loop (GstElement *element) if (event && GST_EVENT_TYPE (event) == GST_EVENT_EOS) { gst_pad_event_default (wavparse->sinkpad, event); } else { - gst_element_error (element, "Read failure"); + gst_element_error (element, RESOURCE, READ, NULL, NULL); } return; } @@ -808,7 +808,8 @@ gst_wavparse_loop (GstElement *element) case GST_WAVPARSE_START: if (chunk.id != GST_RIFF_TAG_RIFF && chunk.type != GST_RIFF_RIFF_WAVE) { - gst_element_error (element, "This doesn't appear to be a WAV file %08x %08x", chunk.id, chunk.type); + gst_element_error (element, STREAM, WRONG_TYPE, NULL, + ("chunk.id %08x chunk.type %08x", chunk.id, chunk.type)); return; } |