mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
assign error codes
Original commit message from CVS: assign error codes
This commit is contained in:
parent
fd78bb16f1
commit
6a51c30e73
3 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-08-09 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* sys/ximage/ximagesink.c:
|
||||||
|
* sys/xvimage/xvimagesink.c:
|
||||||
|
assign all TOO_LAZY's to a real category. Thanks to Warthy Warthog.
|
||||||
|
|
||||||
2004-08-06 Wim Taymans <wim@fluendo.com>
|
2004-08-06 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_class_init),
|
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_class_init),
|
||||||
|
|
|
@ -746,7 +746,7 @@ gst_ximagesink_xcontext_get (GstXImageSink * ximagesink)
|
||||||
if (!xcontext->disp) {
|
if (!xcontext->disp) {
|
||||||
g_mutex_unlock (ximagesink->x_lock);
|
g_mutex_unlock (ximagesink->x_lock);
|
||||||
g_free (xcontext);
|
g_free (xcontext);
|
||||||
GST_ELEMENT_ERROR (ximagesink, RESOURCE, TOO_LAZY, (NULL),
|
GST_ELEMENT_ERROR (ximagesink, RESOURCE, WRITE, (NULL),
|
||||||
("Could not open display"));
|
("Could not open display"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -684,7 +684,7 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
||||||
|
|
||||||
/* First let's check that XVideo extension is available */
|
/* First let's check that XVideo extension is available */
|
||||||
if (!XQueryExtension (xcontext->disp, "XVideo", &i, &i, &i)) {
|
if (!XQueryExtension (xcontext->disp, "XVideo", &i, &i, &i)) {
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
|
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, SETTINGS, (NULL),
|
||||||
("XVideo extension is not available"));
|
("XVideo extension is not available"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -692,7 +692,7 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
||||||
/* Then we get adaptors list */
|
/* Then we get adaptors list */
|
||||||
if (Success != XvQueryAdaptors (xcontext->disp, xcontext->root,
|
if (Success != XvQueryAdaptors (xcontext->disp, xcontext->root,
|
||||||
&nb_adaptors, &adaptors)) {
|
&nb_adaptors, &adaptors)) {
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
|
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, SETTINGS, (NULL),
|
||||||
("Failed getting XV adaptors list"));
|
("Failed getting XV adaptors list"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -722,7 +722,7 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
||||||
XvFreeAdaptorInfo (adaptors);
|
XvFreeAdaptorInfo (adaptors);
|
||||||
|
|
||||||
if (!xcontext->xv_port_id) {
|
if (!xcontext->xv_port_id) {
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
|
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, BUSY, (NULL),
|
||||||
("No port available"));
|
("No port available"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -810,7 +810,7 @@ gst_xvimagesink_get_xv_support (GstXvImageSink * xvimagesink,
|
||||||
if (gst_caps_is_empty (caps)) {
|
if (gst_caps_is_empty (caps)) {
|
||||||
gst_caps_free (caps);
|
gst_caps_free (caps);
|
||||||
XvUngrabPort (xcontext->disp, xcontext->xv_port_id, 0);
|
XvUngrabPort (xcontext->disp, xcontext->xv_port_id, 0);
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
|
GST_ELEMENT_ERROR (xvimagesink, STREAM, WRONG_TYPE, (NULL),
|
||||||
("No supported format found"));
|
("No supported format found"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -899,7 +899,7 @@ gst_xvimagesink_xcontext_get (GstXvImageSink * xvimagesink)
|
||||||
if (!xcontext->disp) {
|
if (!xcontext->disp) {
|
||||||
g_mutex_unlock (xvimagesink->x_lock);
|
g_mutex_unlock (xvimagesink->x_lock);
|
||||||
g_free (xcontext);
|
g_free (xcontext);
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
|
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, WRITE, (NULL),
|
||||||
("Could not open display"));
|
("Could not open display"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -929,7 +929,7 @@ gst_xvimagesink_xcontext_get (GstXvImageSink * xvimagesink)
|
||||||
XCloseDisplay (xcontext->disp);
|
XCloseDisplay (xcontext->disp);
|
||||||
g_mutex_unlock (xvimagesink->x_lock);
|
g_mutex_unlock (xvimagesink->x_lock);
|
||||||
g_free (xcontext);
|
g_free (xcontext);
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
|
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, SETTINGS, (NULL),
|
||||||
("Could not get pixel formats"));
|
("Could not get pixel formats"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue