mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
formatting
This commit is contained in:
parent
f6a52e0c11
commit
7df3bf48ce
1 changed files with 28 additions and 25 deletions
|
|
@ -1670,35 +1670,38 @@ static int setup_streams(struct impl *impl)
|
||||||
struct spa_pod_dynamic_builder b;
|
struct spa_pod_dynamic_builder b;
|
||||||
struct spa_filter_graph *graph = impl->graph;
|
struct spa_filter_graph *graph = impl->graph;
|
||||||
|
|
||||||
if (impl->control_stream_active) {
|
if (impl->control_stream_active) {
|
||||||
impl->control = pw_stream_new(impl->core,
|
impl->control = pw_stream_new(impl->core,
|
||||||
"filter control", impl->control_props);
|
"filter control", impl->control_props);
|
||||||
impl->control_props = NULL;
|
impl->control_props = NULL;
|
||||||
if (impl->control == NULL)
|
if (impl->control == NULL)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
pw_stream_add_listener(impl->control,
|
pw_stream_add_listener(impl->control,
|
||||||
&impl->control_listener,
|
&impl->control_listener,
|
||||||
&control_stream_events, impl);
|
&control_stream_events, impl);
|
||||||
|
|
||||||
uint8_t buffer[256];
|
uint8_t buffer[256];
|
||||||
struct spa_pod_builder bt = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
|
struct spa_pod_builder bt = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
|
||||||
const struct spa_pod *param[1];
|
const struct spa_pod *param[1];
|
||||||
|
|
||||||
param[0] = spa_pod_builder_add_object(&bt,
|
param[0] = spa_pod_builder_add_object(&bt,
|
||||||
SPA_TYPE_OBJECT_Format, SPA_PARAM_EnumFormat,
|
SPA_TYPE_OBJECT_Format,
|
||||||
SPA_FORMAT_mediaType, SPA_POD_Id(SPA_MEDIA_TYPE_application),
|
SPA_PARAM_EnumFormat,
|
||||||
SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_control)
|
SPA_FORMAT_mediaType,
|
||||||
);
|
SPA_POD_Id(SPA_MEDIA_TYPE_application),
|
||||||
|
SPA_FORMAT_mediaSubtype,
|
||||||
|
SPA_POD_Id(SPA_MEDIA_SUBTYPE_control)
|
||||||
|
);
|
||||||
|
|
||||||
pw_stream_connect(impl->control,
|
pw_stream_connect(impl->control,
|
||||||
PW_DIRECTION_INPUT,
|
PW_DIRECTION_INPUT,
|
||||||
PW_ID_ANY,
|
PW_ID_ANY,
|
||||||
PW_STREAM_FLAG_AUTOCONNECT |
|
PW_STREAM_FLAG_AUTOCONNECT |
|
||||||
PW_STREAM_FLAG_MAP_BUFFERS |
|
PW_STREAM_FLAG_MAP_BUFFERS |
|
||||||
PW_STREAM_FLAG_RT_PROCESS,
|
PW_STREAM_FLAG_RT_PROCESS,
|
||||||
param, 1);
|
param, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl->capture = pw_stream_new(impl->core,
|
impl->capture = pw_stream_new(impl->core,
|
||||||
"filter capture", impl->capture_props);
|
"filter capture", impl->capture_props);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue