mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
protocol-native: use the right samplerate
The render_memblockq is expressed in the sample_spec of the sink, not of the particular stream before resampling.
This commit is contained in:
parent
41ad33dfe7
commit
3b01d3a53f
1 changed files with 1 additions and 1 deletions
|
|
@ -2550,7 +2550,7 @@ static void command_get_playback_latency(pa_pdispatch *pd, uint32_t command, uin
|
|||
reply = reply_new(tag);
|
||||
pa_tagstruct_put_usec(reply,
|
||||
s->current_sink_latency +
|
||||
pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sample_spec));
|
||||
pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sink->sample_spec));
|
||||
pa_tagstruct_put_usec(reply, 0);
|
||||
pa_tagstruct_put_boolean(reply,
|
||||
s->playing_for > 0 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue