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
fcbffaa9
Commit
fcbffaa9
authored
Oct 21, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge UDP access output with core TTL handling
parent
1180a63a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
modules/access_output/udp.c
modules/access_output/udp.c
+14
-13
src/libvlc.h
src/libvlc.h
+2
-2
No files found.
modules/access_output/udp.c
View file @
fcbffaa9
...
...
@@ -77,12 +77,6 @@ static void Close( vlc_object_t * );
"Default caching value for outbound UDP streams. This " \
"value should be set in milliseconds." )
#define TTL_TEXT N_("Hop limit (TTL)")
#define TTL_LONGTEXT N_( \
"This is the hop limit (also known as \"Time-To-Live\" or TTL) of " \
"the multicast packets sent by the stream output (0 = use operating " \
"system built-in default).")
#define GROUP_TEXT N_("Group packets")
#define GROUP_LONGTEXT N_("Packets can be sent one by one at the right time " \
"or by groups. You can choose the number " \
...
...
@@ -101,8 +95,6 @@ vlc_module_begin();
set_category
(
CAT_SOUT
);
set_subcategory
(
SUBCAT_SOUT_ACO
);
add_integer
(
SOUT_CFG_PREFIX
"caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"ttl"
,
0
,
NULL
,
TTL_TEXT
,
TTL_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"group"
,
1
,
NULL
,
GROUP_TEXT
,
GROUP_LONGTEXT
,
VLC_TRUE
);
add_suppressed_integer
(
SOUT_CFG_PREFIX
"late"
);
...
...
@@ -121,12 +113,20 @@ vlc_module_end();
static
const
char
*
ppsz_sout_options
[]
=
{
"caching"
,
"ttl"
,
"group"
,
"raw"
,
NULL
};
/* Options handled by the libvlc network core */
static
const
char
*
ppsz_core_options
[]
=
{
"dscp"
,
"ttl"
,
"miface"
,
"miface-addr"
,
NULL
};
static
int
Write
(
sout_access_out_t
*
,
block_t
*
);
static
int
WriteRaw
(
sout_access_out_t
*
,
block_t
*
);
static
int
Seek
(
sout_access_out_t
*
,
off_t
);
...
...
@@ -186,6 +186,8 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_access
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_access
->
p_cfg
);
config_ChainParse
(
p_access
,
""
,
ppsz_core_options
,
p_access
->
p_cfg
);
if
(
!
(
p_sys
=
malloc
(
sizeof
(
sout_access_out_sys_t
)
)
)
)
{
...
...
@@ -247,11 +249,10 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_thread
->
p_fifo
=
block_FifoNew
(
p_access
);
p_sys
->
p_thread
->
p_empty_blocks
=
block_FifoNew
(
p_access
);
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"ttl"
,
&
val
);
i_handle
=
net_ConnectUDP
(
p_this
,
psz_dst_addr
,
i_dst_port
,
val
.
i_int
);
i_handle
=
net_ConnectUDP
(
p_this
,
psz_dst_addr
,
i_dst_port
,
-
1
);
if
(
i_handle
==
-
1
)
{
msg_Err
(
p_access
,
"failed to
open a connection (udp)
"
);
msg_Err
(
p_access
,
"failed to
create UDP socket
"
);
return
VLC_EGENERIC
;
}
...
...
src/libvlc.h
View file @
fcbffaa9
...
...
@@ -434,7 +434,7 @@ static char *ppsz_clock_descriptions[] =
#define TTL_TEXT N_("Hop limit (TTL)")
#define TTL_LONGTEXT N_( \
"This is the hop limit (also known as \"Time-To-Live\" or TTL) of " \
"the multicast packets sent by the stream output (
0
= use operating " \
"the multicast packets sent by the stream output (
-1
= use operating " \
"system built-in default).")
#define MIFACE_TEXT N_("Multicast output interface")
...
...
@@ -1537,7 +1537,7 @@ vlc_module_begin();
set_subcategory
(
SUBCAT_SOUT_ACO
);
add_module
(
"access_output"
,
"sout access"
,
NULL
,
NULL
,
ACCESS_OUTPUT_TEXT
,
ACCESS_OUTPUT_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"ttl"
,
0
,
NULL
,
TTL_TEXT
,
TTL_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"ttl"
,
-
1
,
NULL
,
TTL_TEXT
,
TTL_LONGTEXT
,
VLC_TRUE
);
add_string
(
"miface"
,
NULL
,
NULL
,
MIFACE_TEXT
,
MIFACE_LONGTEXT
,
VLC_TRUE
);
add_string
(
"miface-addr"
,
NULL
,
NULL
,
MIFACE_ADDR_TEXT
,
MIFACE_ADDR_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"dscp"
,
0
,
NULL
,
DSCP_TEXT
,
DSCP_LONGTEXT
,
VLC_TRUE
);
...
...
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