Commit 6b389f7b authored by Rémi Denis-Courmont's avatar 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).
parent 346ae7a9
......@@ -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 =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment