[V4L2] detect core caps correctly

This commit is contained in:
ToadKing 2013-11-15 17:58:01 -05:00
parent 9558a47ada
commit e524ee1834

View File

@ -369,7 +369,7 @@ static void *v4l_init(const char *device, uint64_t caps, unsigned width, unsigne
{
struct stat st;
if (!(caps & RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER))
if ((caps & (1ULL << RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER)) == 0)
{
RARCH_ERR("video4linux2 returns raw framebuffers.\n");
return NULL;