From e68dbca275a6ed1d2d96b5bf76327af7cd7fd5b7 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 16 Sep 2003 10:00:00 +0000 Subject: [PATCH] reverting error patch before making a branch. Original commit message from CVS: reverting error patch before making a branch. --- ext/lame/gstlame.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index a7bf213..752c860 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -364,9 +364,8 @@ gst_lame_sinkconnect (GstPad *pad, GstCaps *caps) gst_caps_get_int (caps, "channels", &lame->num_channels); if (!gst_lame_setup (lame)) { - 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?)")); + gst_element_error (GST_ELEMENT (lame), + "could not initialize encoder (wrong parameters?)"); return GST_PAD_LINK_REFUSED; } @@ -747,9 +746,7 @@ gst_lame_chain (GstPad *pad, GstBuffer *buf) if (!lame->initialized) { gst_buffer_unref (buf); - 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?)")); + gst_element_error (GST_ELEMENT (lame), "encoder not initialized (input is not audio?)"); return; } -- 2.7.4