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/gstflactag.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/gstflactag.c')
-rw-r--r-- | ext/flac/gstflactag.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c index 5a155f24..ac0704b8 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 (GST_ELEMENT (tag), "Not a flac stream\n"); + gst_element_error (tag, STREAM, WRONG_TYPE, NULL, NULL); } } @@ -464,8 +464,8 @@ 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 (GST_ELEMENT (tag), - "Error creating padding block\n"); + 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)); GST_BUFFER_DATA (buffer)[0] = 0x81; /* 0x80 = Last metadata block, @@ -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 (GST_ELEMENT (tag), "Error filling vorbis comments\n"); + 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 (GST_ELEMENT (tag), "Vorbis comment too long\n"); + gst_element_error (tag, CORE, TAG, NULL, ("Vorbis comment of size %d too long", size)); return; } } |