From 594b9974551de8c8e93199fcf002e5f594213f1a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 15 Sep 2003 01:08:38 +0000 Subject: [PATCH] converted gst_element_error to new format in ext/ - gettext pending Original commit message from CVS: converted gst_element_error to new format in ext/ - gettext pending --- ext/lame/gstlame.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 752c860c3d..a7bf21301d 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -364,8 +364,9 @@ gst_lame_sinkconnect (GstPad *pad, GstCaps *caps) gst_caps_get_int (caps, "channels", &lame->num_channels); if (!gst_lame_setup (lame)) { - gst_element_error (GST_ELEMENT (lame), - "could not initialize encoder (wrong parameters?)"); + gst_element_gerror(GST_ELEMENT (lame), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("could not initialize encoder (wrong parameters?)")); return GST_PAD_LINK_REFUSED; } @@ -746,7 +747,9 @@ gst_lame_chain (GstPad *pad, GstBuffer *buf) if (!lame->initialized) { gst_buffer_unref (buf); - gst_element_error (GST_ELEMENT (lame), "encoder not initialized (input is not audio?)"); + gst_element_gerror(GST_ELEMENT (lame), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("encoder not initialized (input is not audio?)")); return; }