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 | 07ed811a0983771c45faa2f6f76a9fff186db407 (patch) | |
tree | 1c0250da756e8b2dce0b660515d72ab1352a11d3 /ext/faac | |
parent | b1e81d454192223e58f3225aa44785e940a90fd7 (diff) | |
download | gst-plugins-bad-07ed811a0983771c45faa2f6f76a9fff186db407.tar.gz gst-plugins-bad-07ed811a0983771c45faa2f6f76a9fff186db407.tar.bz2 gst-plugins-bad-07ed811a0983771c45faa2f6f76a9fff186db407.zip |
use new error signal and classification
Original commit message from CVS:
use new error signal and classification
Diffstat (limited to 'ext/faac')
-rw-r--r-- | ext/faac/gstfaac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/faac/gstfaac.c b/ext/faac/gstfaac.c index 182d094e..f84acb6f 100644 --- a/ext/faac/gstfaac.c +++ b/ext/faac/gstfaac.c @@ -417,7 +417,7 @@ gst_faac_chain (GstPad *pad, NULL, 0, GST_BUFFER_DATA (outbuf), faac->bytes)) < 0) { - gst_element_error (GST_ELEMENT (faac), "Error during AAC encoding"); + gst_element_error (faac, LIBRARY, ENCODE, NULL, NULL); gst_event_unref (event); gst_buffer_unref (outbuf); return; @@ -445,8 +445,8 @@ gst_faac_chain (GstPad *pad, inbuf = GST_BUFFER (data); if (!faac->handle) { - gst_element_error (GST_ELEMENT (faac), - "No input format negotiated"); + gst_element_error (faac, CORE, NEGOTIATION, NULL, + ("format wasn't negotiated before chain function")); gst_buffer_unref (inbuf); return; } @@ -454,8 +454,8 @@ gst_faac_chain (GstPad *pad, if (!GST_PAD_CAPS (faac->srcpad)) { if (gst_faac_srcconnect (faac->srcpad, gst_pad_get_allowed_caps (faac->srcpad)) <= 0) { - gst_element_error (GST_ELEMENT (faac), - "Failed to negotiate MPEG/AAC format with next element"); + gst_element_error (faac, CORE, NEGOTIATION, NULL, + ("failed to negotiate MPEG/AAC format with next element")); gst_buffer_unref (inbuf); return; } @@ -516,7 +516,7 @@ gst_faac_chain (GstPad *pad, GST_BUFFER_SIZE (subbuf) / faac->bps, GST_BUFFER_DATA (outbuf), faac->bytes)) < 0) { - gst_element_error (GST_ELEMENT (faac), "Error during AAC encoding"); + gst_element_error (faac, LIBRARY, ENCODE, NULL, NULL); gst_buffer_unref (inbuf); gst_buffer_unref (subbuf); return; |