mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-29 21:37:54 -04:00
milan-avb: stream: do not wire CRF streams into the PipeWire audio graph
This commit is contained in:
parent
320c979145
commit
d88504e21f
1 changed files with 9 additions and 7 deletions
|
|
@ -593,12 +593,13 @@ struct stream *server_create_stream(struct server *server, struct stream *stream
|
||||||
if (stream->stream == NULL)
|
if (stream->stream == NULL)
|
||||||
goto error_free;
|
goto error_free;
|
||||||
|
|
||||||
pw_stream_add_listener(stream->stream,
|
if (!stream->is_crf)
|
||||||
&stream->stream_listener,
|
pw_stream_add_listener(stream->stream,
|
||||||
direction == SPA_DIRECTION_INPUT ?
|
&stream->stream_listener,
|
||||||
&source_stream_events :
|
direction == SPA_DIRECTION_INPUT ?
|
||||||
&sink_stream_events,
|
&source_stream_events :
|
||||||
stream);
|
&sink_stream_events,
|
||||||
|
stream);
|
||||||
|
|
||||||
{
|
{
|
||||||
uint16_t desc_type = (direction == SPA_DIRECTION_INPUT)
|
uint16_t desc_type = (direction == SPA_DIRECTION_INPUT)
|
||||||
|
|
@ -625,7 +626,8 @@ struct stream *server_create_stream(struct server *server, struct stream *stream
|
||||||
params[n_params++] = spa_format_audio_raw_build(&b,
|
params[n_params++] = spa_format_audio_raw_build(&b,
|
||||||
SPA_PARAM_EnumFormat, &stream->info.info.raw);
|
SPA_PARAM_EnumFormat, &stream->info.info.raw);
|
||||||
|
|
||||||
if ((res = pw_stream_connect(stream->stream,
|
if (!stream->is_crf &&
|
||||||
|
(res = pw_stream_connect(stream->stream,
|
||||||
pw_direction_reverse(direction),
|
pw_direction_reverse(direction),
|
||||||
PW_ID_ANY,
|
PW_ID_ANY,
|
||||||
PW_STREAM_FLAG_MAP_BUFFERS |
|
PW_STREAM_FLAG_MAP_BUFFERS |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue