mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
Fix up audio formats as well
This commit is contained in:
parent
b67c216a04
commit
a973007a49
12 changed files with 82 additions and 58 deletions
|
|
@ -477,8 +477,11 @@ spa_v4l2_set_format (SpaV4l2Source *this, V4l2Format *f, bool try_only)
|
|||
f->fmt.media_subtype,
|
||||
f->format,
|
||||
0);
|
||||
if (info == NULL)
|
||||
if (info == NULL) {
|
||||
fprintf (stderr, "unknown media type %d %d %d\n", f->fmt.media_type,
|
||||
f->fmt.media_subtype, f->format);
|
||||
return -1;
|
||||
}
|
||||
|
||||
fmt.fmt.pix.pixelformat = info->fourcc;
|
||||
fmt.fmt.pix.field = V4L2_FIELD_ANY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue