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
c46a622a
Commit
c46a622a
authored
Sep 19, 2008
by
Sebastien Escudier
Committed by
Rémi Denis-Courmont
Sep 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow 0 TTL
Signed-off-by:
Rémi Denis-Courmont
<
rdenis@simphalempin.com
>
parent
c4bf02fb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
modules/control/netsync.c
modules/control/netsync.c
+1
-1
modules/demux/ts.c
modules/demux/ts.c
+1
-1
modules/misc/notify/growl_udp.c
modules/misc/notify/growl_udp.c
+1
-1
src/network/udp.c
src/network/udp.c
+2
-2
No files found.
modules/control/netsync.c
View file @
c46a622a
...
...
@@ -108,7 +108,7 @@ static int Activate( vlc_object_t *p_this )
msg_Err
(
p_intf
,
"master address not specified"
);
return
VLC_EGENERIC
;
}
fd
=
net_ConnectUDP
(
VLC_OBJECT
(
p_intf
),
psz_master
,
NETSYNC_PORT
,
0
);
fd
=
net_ConnectUDP
(
VLC_OBJECT
(
p_intf
),
psz_master
,
NETSYNC_PORT
,
-
1
);
free
(
psz_master
);
}
else
...
...
modules/demux/ts.c
View file @
c46a622a
...
...
@@ -712,7 +712,7 @@ static int Open( vlc_object_t *p_this )
if
(
i_port
<=
0
)
i_port
=
1234
;
msg_Dbg
(
p_demux
,
"resend ts to '%s:%d'"
,
val
.
psz_string
,
i_port
);
p_sys
->
fd
=
net_ConnectUDP
(
VLC_OBJECT
(
p_demux
),
val
.
psz_string
,
i_port
,
0
);
p_sys
->
fd
=
net_ConnectUDP
(
VLC_OBJECT
(
p_demux
),
val
.
psz_string
,
i_port
,
-
1
);
if
(
p_sys
->
fd
<
0
)
{
msg_Err
(
p_demux
,
"failed to open udp socket, send disabled"
);
...
...
modules/misc/notify/growl_udp.c
View file @
c46a622a
...
...
@@ -289,7 +289,7 @@ static int CheckAndSend( vlc_object_t *p_this, uint8_t* p_data, int i_offset )
p_data
[
i_offset
++
]
=
(
md5
.
p_digest
[
i
]
>>
24
)
&
0xFF
;
}
i_handle
=
net_ConnectUDP
(
p_this
,
psz_server
,
i_port
,
0
);
i_handle
=
net_ConnectUDP
(
p_this
,
psz_server
,
i_port
,
-
1
);
if
(
i_handle
==
-
1
)
{
msg_Err
(
p_this
,
"failed to open a connection (udp)"
);
...
...
src/network/udp.c
View file @
c46a622a
...
...
@@ -642,7 +642,7 @@ int __net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
int
i_val
,
i_handle
=
-
1
;
bool
b_unreach
=
false
;
if
(
i_hlim
<
1
)
if
(
i_hlim
<
0
)
i_hlim
=
var_CreateGetInteger
(
p_this
,
"ttl"
);
memset
(
&
hints
,
0
,
sizeof
(
hints
)
);
...
...
@@ -676,7 +676,7 @@ int __net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
setsockopt
(
fd
,
SOL_SOCKET
,
SO_BROADCAST
,
&
(
int
){
1
},
sizeof
(
int
));
#endif
if
(
i_hlim
>
0
)
if
(
i_hlim
>
=
0
)
net_SetMcastHopLimit
(
p_this
,
fd
,
ptr
->
ai_family
,
i_hlim
);
str
=
var_CreateGetNonEmptyString
(
p_this
,
"miface"
);
...
...
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