mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-22 08:56:52 -05:00
Rework handling of the PA_SINK_LATENCY/PA_SOURCE_LATENCY flags
This commit is contained in:
parent
fb4c111d18
commit
2ff20ceccb
2 changed files with 11 additions and 3 deletions
|
|
@ -501,6 +501,9 @@ pa_usec_t pa_source_get_latency(pa_source *s) {
|
|||
if (!PA_SOURCE_IS_OPENED(s->state))
|
||||
return 0;
|
||||
|
||||
if (!(s->flags & PA_SOURCE_LATENCY))
|
||||
return 0;
|
||||
|
||||
pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_LATENCY, &usec, 0, NULL) == 0);
|
||||
|
||||
return usec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue