mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-18 13:49:58 +01:00
explicitly try yuv420 format if all else fails (v4l2)
This commit is contained in:
@@ -681,6 +681,12 @@ static int v4l2_negotiate_pixel_format( v4l2info *v, int host_fmt, int wid, int
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
supported = v4l2_tryout_pixel_format( v, V4L2_PIX_FMT_YUV420, wid, hei,dw,dh,candidate );
|
||||||
|
if( supported ) {
|
||||||
|
veejay_msg(VEEJAY_MSG_DEBUG, "v4l2: Capture device supports YUV420");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
//@ try anything else
|
//@ try anything else
|
||||||
int k;
|
int k;
|
||||||
for( k = 0; k < v->n_pixel_formats; k ++ ) {
|
for( k = 0; k < v->n_pixel_formats; k ++ ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user