Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e7440c3b
Commit
e7440c3b
authored
Aug 14, 2005
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALL: compile fixes
parent
5599aa05
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
8 deletions
+25
-8
include/network.h
include/network.h
+5
-3
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+1
-1
src/misc/net.c
src/misc/net.c
+1
-1
src/stream_output/sap.c
src/stream_output/sap.c
+18
-3
No files found.
include/network.h
View file @
e7440c3b
...
@@ -399,7 +399,9 @@ int inet_pton(int af, const char *src, void *dst);
...
@@ -399,7 +399,9 @@ int inet_pton(int af, const char *src, void *dst);
# define net_StopSend( fd ) (void)shutdown( fd, SD_SEND )
# define net_StopSend( fd ) (void)shutdown( fd, SD_SEND )
# define net_StopRecv( fd ) (void)shutdown( fd, SD_RECEIVE )
# define net_StopRecv( fd ) (void)shutdown( fd, SD_RECEIVE )
#else
#else
# warning FIXME: implement shutdown on your platform!
# ifndef SYS_BEOS
/* R5 just doesn't have a working shutdown() */
# warning FIXME: implement shutdown on your platform!
# endif
# define net_StopSend( fd ) (void)0
# define net_StopSend( fd ) (void)0
# define net_StopRecv( fd ) (void)0
# define net_StopRecv( fd ) (void)0
#endif
#endif
...
@@ -515,13 +517,13 @@ static inline vlc_bool_t net_AddressIsMulticast( vlc_object_t *p_object, const c
...
@@ -515,13 +517,13 @@ static inline vlc_bool_t net_AddressIsMulticast( vlc_object_t *p_object, const c
&&
(
ntohl
(
v4
->
sin_addr
.
s_addr
)
<=
0xefffffff
);
&&
(
ntohl
(
v4
->
sin_addr
.
s_addr
)
<=
0xefffffff
);
#endif
#endif
}
}
#if defined( WIN32 ) || defined( HAVE_GETADDRINFO )
else
if
(
res
->
ai_family
==
AF_INET6
)
else
if
(
res
->
ai_family
==
AF_INET6
)
{
{
#if defined( WIN32 ) || defined( HAVE_GETADDRINFO )
struct
sockaddr_in6
*
v6
=
(
struct
sockaddr_in6
*
)
res
->
ai_addr
;
struct
sockaddr_in6
*
v6
=
(
struct
sockaddr_in6
*
)
res
->
ai_addr
;
b_multicast
=
IN6_IS_ADDR_MULTICAST
(
&
v6
->
sin6_addr
);
b_multicast
=
IN6_IS_ADDR_MULTICAST
(
&
v6
->
sin6_addr
);
#endif
}
}
#endif
vlc_freeaddrinfo
(
res
);
vlc_freeaddrinfo
(
res
);
return
b_multicast
;
return
b_multicast
;
...
...
modules/demux/playlist/m3u.c
View file @
e7440c3b
...
@@ -271,6 +271,7 @@ static void parseEXTINF(char *psz_string, char **ppsz_author,
...
@@ -271,6 +271,7 @@ static void parseEXTINF(char *psz_string, char **ppsz_author,
{
{
char
*
end
=
NULL
;
char
*
end
=
NULL
;
char
*
psz_item
=
NULL
;
char
*
psz_item
=
NULL
;
char
*
pos
;
end
=
psz_string
+
strlen
(
psz_string
);
end
=
psz_string
+
strlen
(
psz_string
);
...
@@ -299,7 +300,6 @@ static void parseEXTINF(char *psz_string, char **ppsz_author,
...
@@ -299,7 +300,6 @@ static void parseEXTINF(char *psz_string, char **ppsz_author,
}
}
/* read the author */
/* read the author */
char
*
pos
;
/* parse the author until unescaped comma is reached */
/* parse the author until unescaped comma is reached */
psz_item
=
pos
=
psz_string
;
psz_item
=
pos
=
psz_string
;
while
(
psz_string
<
end
&&
*
psz_string
!=
','
)
while
(
psz_string
<
end
&&
*
psz_string
!=
','
)
...
...
src/misc/net.c
View file @
e7440c3b
...
@@ -1248,7 +1248,7 @@ int inet_pton(int af, const char *src, void *dst)
...
@@ -1248,7 +1248,7 @@ int inet_pton(int af, const char *src, void *dst)
if
(
ipv4
==
INADDR_NONE
)
if
(
ipv4
==
INADDR_NONE
)
return
-
1
;
return
-
1
;
memcpy
(
dst
;
&
ipv4
,
4
);
memcpy
(
dst
,
&
ipv4
,
4
);
# endif
/* WIN32 */
# endif
/* WIN32 */
return
0
;
return
0
;
}
}
...
...
src/stream_output/sap.c
View file @
e7440c3b
...
@@ -42,7 +42,9 @@
...
@@ -42,7 +42,9 @@
# include <ws2tcpip.h>
# include <ws2tcpip.h>
#else
#else
# include <netdb.h>
# include <netdb.h>
# include <arpa/inet.h>
# ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# endif
#endif
#endif
#include "charset.h"
#include "charset.h"
...
@@ -447,8 +449,21 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
...
@@ -447,8 +449,21 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
psz_head
[
2
]
=
(
i_hash
&
0xFF00
)
>>
8
;
/* Msg id hash */
psz_head
[
2
]
=
(
i_hash
&
0xFF00
)
>>
8
;
/* Msg id hash */
psz_head
[
3
]
=
(
i_hash
&
0xFF
);
/* Msg id hash 2 */
psz_head
[
3
]
=
(
i_hash
&
0xFF
);
/* Msg id hash 2 */
inet_pton
(
b_ipv6
?
AF_INET6
:
AF_INET
,
/* can't fail */
#if defined (HAVE_INET_PTON) || defined (WIN32)
p_sap_session
->
p_address
->
psz_machine
,
psz_head
+
4
);
if
(
b_ipv6
)
{
inet_pton
(
AF_INET6
,
/* can't fail */
p_sap_session
->
p_address
->
psz_machine
,
psz_head
+
4
);
}
else
#else
{
inet_pton
(
AF_INET
,
/* can't fail */
p_sap_session
->
p_address
->
psz_machine
,
psz_head
+
4
);
}
#endif
memcpy
(
psz_head
+
(
b_ipv6
?
20
:
8
),
"application/sdp"
,
15
);
memcpy
(
psz_head
+
(
b_ipv6
?
20
:
8
),
"application/sdp"
,
15
);
...
...
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