aasink->context = aa_autoinit (&aasink->ascii_surf);
if (aasink->context == NULL) {
- gst_element_error (GST_ELEMENT (aasink),
- g_strdup("opening aalib context"));
+ gst_element_gerror(GST_ELEMENT (aasink), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup ("opening aalib context"));
return FALSE;
}
aa_autoinitkbd(aasink->context, 0);
}
/* oops list exhausted an nothing was found... */
if (!trylist) {
- gst_element_error (element, "could not negotiate");
+ gst_element_gerror(element, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not negotiate"));
return;
}
}
"channels", GST_PROPS_INT (esdmon->channels)
)) <= 0)
{
- gst_element_error (GST_ELEMENT (esdmon), "could not set caps");
+ gst_element_gerror(GST_ELEMENT (esdmon), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not set caps"));
return NULL;
}
}
esdsink = GST_ESDSINK (gst_pad_get_parent (pad));
if (!esdsink->negotiated) {
- gst_element_error (GST_ELEMENT (esdsink), "not negotiated");
+ gst_element_gerror(GST_ELEMENT (esdsink), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("not negotiated"));
goto done;
}
GST_DEBUG (error);
- gst_element_error (GST_ELEMENT (flacdec), error);
+ gst_element_gerror(GST_ELEMENT (flacdec), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf(error));
}
static FLAC__SeekableStreamDecoderSeekStatus
}
if (!flacenc->negotiated) {
- gst_element_error (GST_ELEMENT (flacenc),
- "format not negotiated");
+ gst_element_gerror(GST_ELEMENT (flacenc), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("format not negotiated"));
return;
}
gst_flacenc_set_metadata (flacenc, flacenc->metadata);
state = FLAC__seekable_stream_encoder_init (flacenc->encoder);
if (state != FLAC__STREAM_ENCODER_OK) {
- gst_element_error (GST_ELEMENT (flacenc),
- "could not initialize encoder (wrong parameters?)");
+ gst_element_gerror(GST_ELEMENT (flacenc), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not initialize encoder (wrong parameters?)"));
return;
}
}
flacenc->data = NULL;
if (!res) {
- gst_element_error (GST_ELEMENT (flacenc),
- "encoding error");
+ gst_element_gerror(GST_ELEMENT (flacenc), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf ("encoding error"));
}
}
}
if (!ladspa->bufpool) {
- gst_element_error (element, "Caps were never set, bailing...");
+ gst_element_gerror(element, "Caps were never set, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf(bailing..."));
return;
}
g_return_if_fail (GST_IS_BUFFER (buffer_in));
if (!ladspa->bufpool) {
- gst_element_error ((GstElement*)ladspa, "Caps were never set, bailing...");
+ gst_element_gerror((GstElement*)ladspa, "Caps were never set, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf(bailing..."));
return;
}
if (!GST_PAD_CAPS (mikmod->srcpad)) {
if (gst_mikmod_negotiate (mikmod) <= 0) {
- gst_element_error (GST_ELEMENT (mikmod),
- "Failed to negotiate with next element in mikmod");
+ gst_element_gerror(GST_ELEMENT (mikmod), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("Failed to negotiate with next element in mikmod"));
return;
}
}
"format", GST_PROPS_STRING("PAL"),
NULL)
) <= 0) {
- gst_element_error (GST_ELEMENT(dv1394src), "Could not set source caps for PAL");
+ gst_element_gerror(GST_ELEMENT(dv1394src), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("Could not set source caps for PAL"));
return 0;
}
} else {
"format", GST_PROPS_STRING ("NTSC"),
NULL)
) <= 0) {
- gst_element_error (GST_ELEMENT(dv1394src), "Could not set source caps for NTSC");
+ gst_element_gerror(GST_ELEMENT(dv1394src), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("Could not set source caps for NTSC"));
return 0;
}
}
dv1394src->pool = gst_buffer_pool_get_default( dv1394src->frameSize, N_BUFFERS_IN_POOL );
if (dv1394src->pool == NULL) {
- gst_element_error (GST_ELEMENT(dv1394src), "gst_buffer_pool_get_default returned NULL");
+ gst_element_gerror(GST_ELEMENT(dv1394src), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("gst_buffer_pool_get_default returned NULL"));
}
}
"channels", GST_PROPS_INT (1)
)))
{
- gst_element_error (GST_ELEMENT (speexenc), "could not negotiate");
+ gst_element_gerror(GST_ELEMENT (speexenc), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not negotiate"));
return;
}
}