[vlc-commits] Skip output-only XVideo adapters

Rémi Denis-Courmont git at videolan.org
Tue Oct 4 22:54:30 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct  4 23:52:42 2011 +0300| [6b389f7b27df05ba4700a1b5f578d643782238aa] | committer: Rémi Denis-Courmont

Skip output-only XVideo adapters

We need PutImage meaning the Input and the Image bits in type mask.
Output adapters are rather rare (the _exotic_ Xorg V4L2 driver is one).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b389f7b27df05ba4700a1b5f578d643782238aa
---

 modules/video_output/xcb/xvideo.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 24d2345..b69ecbd 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -362,7 +362,8 @@ static int Open (vlc_object_t *obj)
             continue;
         }
 
-        if (!(a->type & XCB_XV_TYPE_IMAGE_MASK))
+        if (!(a->type & XCB_XV_TYPE_INPUT_MASK)
+         || !(a->type & XCB_XV_TYPE_IMAGE_MASK))
             continue;
 
         xcb_xv_list_image_formats_reply_t *r =



More information about the vlc-commits mailing list