mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
remove more unused stuff
This commit is contained in:
parent
ad71c82159
commit
45ee7b4490
5 changed files with 13 additions and 98 deletions
|
|
@ -402,11 +402,15 @@ spa_v4l2_source_node_port_set_format (SpaNode *node,
|
|||
tf = &state->format[1];
|
||||
fs = sizeof (V4l2Format);
|
||||
|
||||
spa_v4l2_format_init (f);
|
||||
f->fmt.media_type = format->media_type;
|
||||
f->fmt.media_subtype = format->media_subtype;
|
||||
if ((res = spa_props_copy (&format->props, &f->fmt.props) < 0))
|
||||
return res;
|
||||
if ((SpaFormat*)f != format) {
|
||||
spa_v4l2_format_init (f);
|
||||
f->fmt.media_type = format->media_type;
|
||||
f->fmt.media_subtype = format->media_subtype;
|
||||
if ((res = spa_props_copy (&format->props, &f->fmt.props) < 0))
|
||||
return res;
|
||||
} else {
|
||||
f = (V4l2Format*)format;
|
||||
}
|
||||
|
||||
if (spa_v4l2_set_format (this, f, flags & SPA_PORT_FORMAT_FLAG_TEST_ONLY) < 0)
|
||||
return SPA_RESULT_INVALID_MEDIA_TYPE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue