Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdmapsharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
libdmapsharing
Commits
77cdb242
Commit
77cdb242
authored
Oct 18, 2015
by
W. Michael Petullo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set GError when DNSServiceBrowse fails
Signed-off-by:
W. Michael Petullo
<
mike@flyn.org
>
parent
624a7605
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
libdmapsharing/dmap-mdns-browser-dnssd.c
libdmapsharing/dmap-mdns-browser-dnssd.c
+13
-5
No files found.
libdmapsharing/dmap-mdns-browser-dnssd.c
View file @
77cdb242
...
...
@@ -411,17 +411,25 @@ dmap_mdns_browser_start (DMAPMdnsBrowser * browser, GError ** error)
DNSServiceErrorType
browse_err
=
kDNSServiceErr_Unknown
;
browse_err
=
DNSServiceBrowse
(
&
(
browser
->
priv
->
sd_browse_ref
),
0
,
kDNSServiceInterfaceIndexAny
,
service_type_name
[
browser
->
priv
->
service_type
],
0
,
(
DNSServiceBrowseReply
)
dns_service_browse_reply
,
(
void
*
)
browser
);
browse_err
=
DNSServiceBrowse
(
&
(
browser
->
priv
->
sd_browse_ref
),
0
,
kDNSServiceInterfaceIndexAny
,
service_type_name
[
browser
->
priv
->
service_type
],
""
,
(
DNSServiceBrowseReply
)
dns_service_browse_reply
,
(
void
*
)
browser
);
if
(
kDNSServiceErr_NoError
==
browse_err
)
{
g_debug
(
"*** Browse Success ****"
);
is_success
=
TRUE
;
add_browse_to_event_loop
(
browser
);
}
else
{
g_debug
(
"Error starting mDNS discovery using DNS-SD"
);
g_set_error
(
error
,
DMAP_MDNS_BROWSER_ERROR
,
DMAP_MDNS_BROWSER_ERROR_FAILED
,
"%s"
,
"Unable to activate browser"
);
}
return
is_success
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment