Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
d20e734b
Commit
d20e734b
authored
Jul 21, 2005
by
hartman
Browse files
* a missing vlc_freeaddrinfo
parent
f45ea277
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_output/sap.c
View file @
d20e734b
...
...
@@ -298,8 +298,12 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
i
=
vlc_getaddrinfo
(
(
vlc_object_t
*
)
p_sap
,
p_session
->
psz_uri
,
0
,
&
hints
,
&
res
);
if
(
i
==
0
)
{
i
=
vlc_getnameinfo
(
res
->
ai_addr
,
res
->
ai_addrlen
,
psz_buf
,
sizeof
(
psz_buf
),
NULL
,
NI_NUMERICHOST
);
vlc_freeaddrinfo
(
res
);
}
if
(
i
)
{
msg_Err
(
p_sap
,
"Invalid URI for SAP announce : %s : %s"
,
...
...
@@ -566,7 +570,7 @@ static int announce_SendSAPAnnounce( sap_handler_t *p_sap,
i_ret
=
net_Write
(
p_sap
,
p_session
->
p_address
->
i_wfd
,
NULL
,
p_session
->
psz_data
,
p_session
->
i_length
);
if
(
i_ret
!=
p_session
->
i_length
)
if
(
i_ret
!=
p_session
->
i_length
)
{
msg_Warn
(
p_sap
,
"SAP send failed on address %s (%i %i)"
,
p_session
->
p_address
->
psz_address
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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