mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 09:08:14 +00:00
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
This commit is contained in:
parent
77a4320a04
commit
8817348af7
10 changed files with 45 additions and 20 deletions
|
@ -489,8 +489,9 @@ gst_aasink_open (GstAASink *aasink)
|
|||
|
||||
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);
|
||||
|
|
|
@ -798,7 +798,9 @@ gst_dvdec_loop (GstElement *element)
|
|||
}
|
||||
/* 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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,7 +266,9 @@ gst_esdmon_get (GstPad *pad)
|
|||
"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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,7 +266,9 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -291,7 +291,9 @@ gst_flacdec_error_callback (const FLAC__SeekableStreamDecoder *decoder,
|
|||
|
||||
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
|
||||
|
|
|
@ -512,8 +512,9 @@ gst_flacenc_chain (GstPad *pad, GstBuffer *buf)
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -530,8 +531,9 @@ gst_flacenc_chain (GstPad *pad, GstBuffer *buf)
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
@ -565,8 +567,9 @@ gst_flacenc_chain (GstPad *pad, GstBuffer *buf)
|
|||
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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -701,7 +701,9 @@ gst_ladspa_loop (GstElement *element)
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -791,7 +793,9 @@ gst_ladspa_chain (GstPad *pad, GstBuffer *buffer_in)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -310,8 +310,9 @@ gst_mikmod_loop (GstElement *element)
|
|||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -232,7 +232,9 @@ int gst_dv1394src_iso_receive(raw1394handle_t handle,int channel,size_t len,quad
|
|||
"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 {
|
||||
|
@ -244,14 +246,18 @@ int gst_dv1394src_iso_receive(raw1394handle_t handle,int channel,size_t len,quad
|
|||
"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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -176,7 +176,9 @@ gst_speexenc_chain (GstPad *pad, GstBuffer *buf)
|
|||
"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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue