"channels", GST_PROPS_INT (channels),
"rate", GST_PROPS_INT (rate))
) <= 0) {
- gst_element_error (GST_PAD_PARENT (pad), "could not set caps on source pad, aborting...");
+ gst_element_gerror(GST_PAD_PARENT (pad), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not set caps on source pad, aborting..."));
}
}
}
return;
naverr:
- gst_element_error(GST_ELEMENT(src), "user op %d failure: %d",
- op, dvdnav_err_to_string(src->dvdnav));
+ gst_element_gerror(GST_ELEMENT(src), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("user op %d failure: %d", op, dvdnav_err_to_string(src->dvdnav)));
}
/* FIXME: mem leak on non BLOCK_OK events */
buf = gst_buffer_new_from_pool (src->bufferpool, DVD_VIDEO_LB_LEN, 0);
if (!buf) {
- gst_element_error (GST_ELEMENT (src), "Failed to create a new GstBuffer");
+ gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("Failed to create a new GstBuffer"));
return NULL;
}
data = GST_BUFFER_DATA(buf);
if (dvdnav_get_next_block (src->dvdnav, data, &event, &len) !=
DVDNAV_STATUS_OK) {
- gst_element_error (GST_ELEMENT (src), "dvdnav_get_next_block error: %s\n",
- dvdnav_err_to_string(src->dvdnav));
+ gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("dvdnav_get_next_block error: %s\n",
+ dvdnav_err_to_string(src->dvdnav)));
return NULL;
}
* dvdnav_still_skip */
dvdnavsrc_print_event (src, data, event, len);
if (dvdnav_still_skip (src->dvdnav) != DVDNAV_STATUS_OK) {
- gst_element_error (GST_ELEMENT (src), "dvdnav_still_skip error: %s\n",
- dvdnav_err_to_string(src->dvdnav));
+ gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("dvdnav_still_skip error: %s\n",
+ dvdnav_err_to_string(src->dvdnav)));
/* FIXME: close the stream??? */
}
break;
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;
}
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;
}
break;
}
if (!MAD_RECOVERABLE (mad->stream.error)) {
- gst_element_error (GST_ELEMENT (mad), "fatal error decoding stream");
+ gst_element_gerror(GST_ELEMENT (mad), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("fatal error decoding stream"));
return;
}
else if (mad->stream.error == MAD_ERROR_LOSTSYNC) {
info->sequence->transfer_characteristics, info->sequence->matrix_coefficients);
if (!gst_mpeg2dec_negotiate_format (mpeg2dec)) {
- gst_element_error (GST_ELEMENT (mpeg2dec), "could not negotiate format");
+ gst_element_gerror(GST_ELEMENT (mpeg2dec), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not negotiate format"));
goto exit;
}