mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
v4l2: add support for buffer import
Add support for buffer import Rename some methods
This commit is contained in:
parent
5fa334a89b
commit
c5a31acf8c
13 changed files with 585 additions and 240 deletions
|
|
@ -160,15 +160,15 @@ inspect_node (const SpaNode *node, SpaHandle *handle)
|
|||
printf ("supported ports %d %d %d %d\n", n_input, max_input, n_output, max_output);
|
||||
|
||||
for (i = 0; ; i++) {
|
||||
if ((res = node->enum_port_formats (handle, 0, i, &format)) < 0) {
|
||||
if ((res = node->port_enum_formats (handle, 0, i, &format)) < 0) {
|
||||
if (res != SPA_RESULT_ENUM_END)
|
||||
printf ("got error %d\n", res);
|
||||
break;
|
||||
}
|
||||
print_format (format, 1);
|
||||
}
|
||||
if ((res = node->get_port_props (handle, 0, &props)) < 0)
|
||||
printf ("get_port_props error: %d\n", res);
|
||||
if ((res = node->port_get_props (handle, 0, &props)) < 0)
|
||||
printf ("port_get_props error: %d\n", res);
|
||||
else
|
||||
print_props (props, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue