pulse: avoid node lookup when connecting

We can use the node name directly if we strip the .monitor suffix
or remove the MONITOR flag form the name/id.
This commit is contained in:
Wim Taymans 2020-10-24 16:58:01 +02:00
parent ec860d64cf
commit 8ac9ce7947
4 changed files with 23 additions and 25 deletions

View file

@ -513,6 +513,8 @@ struct timeval* pa_rtclock_from_wallclock(struct timeval *tv);
struct timeval* pa_rtclock_to_wallclock(struct timeval *tv);
struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, bool rtclock);
bool pa_endswith(const char *s, const char *sfx);
pa_operation *pa_operation_new(pa_context *c, pa_stream *s, pa_operation_cb_t cb, size_t userdata_size);
void pa_operation_done(pa_operation *o);
int pa_operation_sync(pa_operation *o);