diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2008-04-23 08:58:42 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2008-04-23 08:58:42 +0000 |
commit | b773ac8cb24699278fb1b3e05b88891ccb70b30c (patch) | |
tree | 39a9e85ca2fa2e67614915ec3b89dc50b31672ae /sys | |
parent | 809f8542cfc74bf1e5d202251a637a63a1436267 (diff) |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/xvimage/xvimagesink.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 9bf255c6..bbaa0dd5 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -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); } } } |