mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
core: move 'flags' field into 'pa_sink_input_new_data' structure so that hooks can access it
This commit is contained in:
parent
300384ce0a
commit
84eb6614eb
17 changed files with 50 additions and 43 deletions
|
|
@ -648,8 +648,9 @@ static record_stream* record_stream_new(
|
|||
pa_source_output_new_data_set_channel_map(&data, map);
|
||||
if (peak_detect)
|
||||
data.resample_method = PA_RESAMPLER_PEAKS;
|
||||
data.flags = flags;
|
||||
|
||||
*ret = -pa_source_output_new(&source_output, c->protocol->core, &data, flags);
|
||||
*ret = -pa_source_output_new(&source_output, c->protocol->core, &data);
|
||||
|
||||
pa_source_output_new_data_done(&data);
|
||||
|
||||
|
|
@ -1050,8 +1051,9 @@ static playback_stream* playback_stream_new(
|
|||
if (muted_set)
|
||||
pa_sink_input_new_data_set_muted(&data, muted);
|
||||
data.sync_base = ssync ? ssync->sink_input : NULL;
|
||||
data.flags = flags;
|
||||
|
||||
*ret = -pa_sink_input_new(&sink_input, c->protocol->core, &data, flags);
|
||||
*ret = -pa_sink_input_new(&sink_input, c->protocol->core, &data);
|
||||
|
||||
pa_sink_input_new_data_done(&data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue