mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
module-rtp: listen only for compatible sessions
This commit is contained in:
parent
4937da471f
commit
432f927da9
1 changed files with 5 additions and 6 deletions
|
|
@ -1248,15 +1248,14 @@ static int make_browser(struct impl *impl)
|
|||
{
|
||||
const char *service_name;
|
||||
|
||||
service_name = get_service_name(impl);
|
||||
if (service_name == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
if (impl->browser == NULL) {
|
||||
impl->browser = avahi_service_browser_new(impl->client,
|
||||
AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC,
|
||||
"_apple-midi._udp", NULL, 0,
|
||||
browser_cb, impl);
|
||||
|
||||
avahi_service_browser_new(impl->client,
|
||||
AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC,
|
||||
"_pipewire-audio._udp", NULL, 0,
|
||||
service_name, NULL, 0,
|
||||
browser_cb, impl);
|
||||
}
|
||||
if (impl->browser == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue