sys/xvimage/xvimagesink.c: Add some logging for cases when grabbing the xv failed.

Original commit message from CVS:
* sys/xvimage/xvimagesink.c:
Add some logging for cases when grabbing the xv failed.
This commit is contained in:
Stefan Kost 2008-04-23 08:58:42 +00:00
parent 809f8542cf
commit b773ac8cb2
3 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2008-04-23 Stefan Kost <ensonic@users.sf.net>
* sys/xvimage/xvimagesink.c:
Add some logging for cases when grabbing the xv failed.
2008-04-21 David Schleef <ds@schleef.org>
* ext/ogg/gstoggmux.c:

2
common

@ -1 +1 @@
Subproject commit 3bb6edfe927d6d3020d2f2a4604f54caa61cd104
Subproject commit 19a5a66b2dff75e2820bb2b2d43368d4fcb6a94a

View file

@ -1243,19 +1243,26 @@ gst_lookup_xv_port_from_adaptor (GstXContext * xcontext,
XvAdaptorInfo * adaptors, int adaptor_no)
{
gint j;
gint res;
/* Do we support XvImageMask ? */
if (!(adaptors[adaptor_no].type & XvImageMask))
if (!(adaptors[adaptor_no].type & XvImageMask)) {
GST_DEBUG ("XV Adaptor %s has no support for XvImageMask",
adaptors[adaptor_no].name);
return;
}
/* We found such an adaptor, looking for an available port */
for (j = 0; j < adaptors[adaptor_no].num_ports && !xcontext->xv_port_id; j++) {
/* We try to grab the port */
if (Success == XvGrabPort (xcontext->disp, adaptors[adaptor_no].base_id + j,
0)) {
res = XvGrabPort (xcontext->disp, adaptors[adaptor_no].base_id + j, 0);
if (Success == res) {
xcontext->xv_port_id = adaptors[adaptor_no].base_id + j;
GST_DEBUG ("XV Adaptor %s with %ld ports", adaptors[adaptor_no].name,
adaptors[adaptor_no].num_ports);
} else {
GST_DEBUG ("GrabPort %d for XV Adaptor %s failed: %d", j,
adaptors[adaptor_no].name, res);
}
}
}