Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2f9d56c5
Commit
2f9d56c5
authored
Nov 05, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
f6b814ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/stream_output/sap.c
src/stream_output/sap.c
+6
-6
No files found.
src/stream_output/sap.c
View file @
2f9d56c5
...
@@ -240,6 +240,7 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
...
@@ -240,6 +240,7 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
mtime_t
i_hash
;
mtime_t
i_hash
;
struct
addrinfo
hints
,
*
res
;
struct
addrinfo
hints
,
*
res
;
struct
sockaddr_storage
addr
;
struct
sockaddr_storage
addr
;
socklen_t
addrlen
;
vlc_mutex_lock
(
&
p_sap
->
object_lock
);
vlc_mutex_lock
(
&
p_sap
->
object_lock
);
...
@@ -266,7 +267,8 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
...
@@ -266,7 +267,8 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
(
unsigned
)
res
->
ai_addrlen
>
sizeof
(
addr
)
)
addrlen
=
res
->
ai_addrlen
;
if
((
unsigned
)
addrlen
>
sizeof
(
addr
))
{
{
vlc_mutex_unlock
(
&
p_sap
->
object_lock
);
vlc_mutex_unlock
(
&
p_sap
->
object_lock
);
vlc_freeaddrinfo
(
res
);
vlc_freeaddrinfo
(
res
);
...
@@ -275,7 +277,8 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
...
@@ -275,7 +277,8 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
memcpy
(
&
addr
,
res
->
ai_addr
,
res
->
ai_addrlen
);
memcpy
(
&
addr
,
res
->
ai_addr
,
addrlen
);
vlc_freeaddrinfo
(
res
);
switch
(
addr
.
ss_family
)
switch
(
addr
.
ss_family
)
{
{
...
@@ -328,7 +331,6 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
...
@@ -328,7 +331,6 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
msg_Err
(
p_sap
,
"Out-of-scope multicast address "
msg_Err
(
p_sap
,
"Out-of-scope multicast address "
"not supported by SAP: %s"
,
p_session
->
psz_uri
);
"not supported by SAP: %s"
,
p_session
->
psz_uri
);
vlc_mutex_unlock
(
&
p_sap
->
object_lock
);
vlc_mutex_unlock
(
&
p_sap
->
object_lock
);
vlc_freeaddrinfo
(
res
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -338,15 +340,13 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
...
@@ -338,15 +340,13 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
default:
default:
vlc_mutex_unlock
(
&
p_sap
->
object_lock
);
vlc_mutex_unlock
(
&
p_sap
->
object_lock
);
vlc_freeaddrinfo
(
res
);
msg_Err
(
p_sap
,
"Address family %d not supported by SAP"
,
msg_Err
(
p_sap
,
"Address family %d not supported by SAP"
,
addr
.
ss_family
);
addr
.
ss_family
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
i
=
vlc_getnameinfo
(
(
struct
sockaddr
*
)
&
addr
,
res
->
ai_
addrlen
,
i
=
vlc_getnameinfo
(
(
struct
sockaddr
*
)
&
addr
,
addrlen
,
psz_addr
,
sizeof
(
psz_addr
),
NULL
,
NI_NUMERICHOST
);
psz_addr
,
sizeof
(
psz_addr
),
NULL
,
NI_NUMERICHOST
);
vlc_freeaddrinfo
(
res
);
if
(
i
)
if
(
i
)
{
{
...
...
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