Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
d20e734b
Commit
d20e734b
authored
Jul 21, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* a missing vlc_freeaddrinfo
parent
f45ea277
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/stream_output/sap.c
src/stream_output/sap.c
+5
-1
No files found.
src/stream_output/sap.c
View file @
d20e734b
...
@@ -298,8 +298,12 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
...
@@ -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
,
i
=
vlc_getaddrinfo
(
(
vlc_object_t
*
)
p_sap
,
p_session
->
psz_uri
,
0
,
&
hints
,
&
res
);
&
hints
,
&
res
);
if
(
i
==
0
)
if
(
i
==
0
)
{
i
=
vlc_getnameinfo
(
res
->
ai_addr
,
res
->
ai_addrlen
,
psz_buf
,
i
=
vlc_getnameinfo
(
res
->
ai_addr
,
res
->
ai_addrlen
,
psz_buf
,
sizeof
(
psz_buf
),
NULL
,
NI_NUMERICHOST
);
sizeof
(
psz_buf
),
NULL
,
NI_NUMERICHOST
);
vlc_freeaddrinfo
(
res
);
}
if
(
i
)
if
(
i
)
{
{
msg_Err
(
p_sap
,
"Invalid URI for SAP announce : %s : %s"
,
msg_Err
(
p_sap
,
"Invalid URI for SAP announce : %s : %s"
,
...
@@ -566,7 +570,7 @@ static int announce_SendSAPAnnounce( sap_handler_t *p_sap,
...
@@ -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
,
i_ret
=
net_Write
(
p_sap
,
p_session
->
p_address
->
i_wfd
,
NULL
,
p_session
->
psz_data
,
p_session
->
psz_data
,
p_session
->
i_length
);
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)"
,
msg_Warn
(
p_sap
,
"SAP send failed on address %s (%i %i)"
,
p_session
->
p_address
->
psz_address
,
p_session
->
p_address
->
psz_address
,
...
...
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