From 2cefb5042912663dbc507f6b717232119549e8c1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 15 Sep 2003 00:34:47 +0000 Subject: converted gst_element_error to new format in gst/ - gettext pending Original commit message from CVS: converted gst_element_error to new format in gst/ - gettext pending --- gst/monoscope/gstmonoscope.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gst/monoscope') diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c index 9eb8bb43..0b94604d 100644 --- a/gst/monoscope/gstmonoscope.c +++ b/gst/monoscope/gstmonoscope.c @@ -285,7 +285,9 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin) GST_DEBUG ("making new pad"); if (!GST_PAD_CAPS (monoscope->srcpad)) { if (gst_monoscope_negotiate (monoscope) <= 0) { - gst_element_error (GST_ELEMENT (monoscope), "could not set caps"); + gst_element_gerror(GST_ELEMENT (monoscope), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("could not set caps")); return; } } -- cgit