/* First let's check that XVideo extension is available */
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"));
return NULL;
}
/* Then we get adaptors list */
if (Success != XvQueryAdaptors (xcontext->disp, xcontext->root,
&nb_adaptors, &adaptors)) {
- GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
+ GST_ELEMENT_ERROR (xvimagesink, RESOURCE, SETTINGS, (NULL),
("Failed getting XV adaptors list"));
return NULL;
}
XvFreeAdaptorInfo (adaptors);
if (!xcontext->xv_port_id) {
- GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
+ GST_ELEMENT_ERROR (xvimagesink, RESOURCE, BUSY, (NULL),
("No port available"));
return NULL;
}
if (gst_caps_is_empty (caps)) {
gst_caps_free (caps);
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"));
return NULL;
}
if (!xcontext->disp) {
g_mutex_unlock (xvimagesink->x_lock);
g_free (xcontext);
- GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
+ GST_ELEMENT_ERROR (xvimagesink, RESOURCE, WRITE, (NULL),
("Could not open display"));
return NULL;
}
XCloseDisplay (xcontext->disp);
g_mutex_unlock (xvimagesink->x_lock);
g_free (xcontext);
- GST_ELEMENT_ERROR (xvimagesink, RESOURCE, TOO_LAZY, (NULL),
+ GST_ELEMENT_ERROR (xvimagesink, RESOURCE, SETTINGS, (NULL),
("Could not get pixel formats"));
return NULL;
}