mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: remove control type from formats
We just want to negotiate the control stream, we don't really care about what is in the control stream.
This commit is contained in:
parent
2e18d5f70c
commit
8047a37b02
3 changed files with 6 additions and 16 deletions
|
|
@ -2615,9 +2615,7 @@ static int port_param_enum_formats(struct impl *impl, struct port *port, uint32_
|
|||
*param = spa_pod_builder_add_object(b,
|
||||
SPA_TYPE_OBJECT_Format, id,
|
||||
SPA_FORMAT_mediaType, SPA_POD_Id(SPA_MEDIA_TYPE_application),
|
||||
SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_control),
|
||||
SPA_FORMAT_CONTROL_types, SPA_POD_CHOICE_FLAGS_Int(
|
||||
(1u<<SPA_CONTROL_UMP) | (1u<<SPA_CONTROL_Properties)));
|
||||
SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_control));
|
||||
} else {
|
||||
struct spa_pod_frame f[1];
|
||||
uint32_t rate = impl->io_position ?
|
||||
|
|
@ -2688,9 +2686,7 @@ static int port_param_format(struct impl *impl, struct port *port, uint32_t id,
|
|||
*param = spa_pod_builder_add_object(b,
|
||||
SPA_TYPE_OBJECT_Format, id,
|
||||
SPA_FORMAT_mediaType, SPA_POD_Id(SPA_MEDIA_TYPE_application),
|
||||
SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_control),
|
||||
SPA_FORMAT_CONTROL_types, SPA_POD_Int(
|
||||
(1u<<SPA_CONTROL_UMP) | (1u<<SPA_CONTROL_Properties)));
|
||||
SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_control));
|
||||
else
|
||||
*param = spa_format_audio_raw_build(b, id, &port->format.info.raw);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue