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
eec78961
Commit
eec78961
authored
Sep 08, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access_out_udp: remove "raw" mode that is not used anymore
(it was only used internally by the RTP sout).
parent
a2bfd505
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
36 deletions
+3
-36
modules/access_output/udp.c
modules/access_output/udp.c
+3
-36
No files found.
modules/access_output/udp.c
View file @
eec78961
...
...
@@ -95,11 +95,6 @@ static void Close( vlc_object_t * );
"of packets that will be sent at a time. It " \
"helps reducing the scheduling load on " \
"heavily-loaded systems." )
#define RAW_TEXT N_("Raw write")
#define RAW_LONGTEXT N_("Packets will be sent " \
"directly, without trying to fill the MTU (ie, " \
"without trying to make the biggest possible packets " \
"in order to improve streaming)." )
#define RTCP_TEXT N_("RTCP Sender Report")
#define RTCP_LONGTEXT N_("Send RTCP Sender Report packets")
#define RTCP_PORT_TEXT N_("RTCP destination port number")
...
...
@@ -121,9 +116,8 @@ vlc_module_begin();
add_integer
(
SOUT_CFG_PREFIX
"group"
,
1
,
NULL
,
GROUP_TEXT
,
GROUP_LONGTEXT
,
VLC_TRUE
);
add_obsolete_integer
(
SOUT_CFG_PREFIX
"late"
);
add_bool
(
SOUT_CFG_PREFIX
"raw"
,
VLC_FALSE
,
NULL
,
RAW_TEXT
,
RAW_LONGTEXT
,
VLC_TRUE
);
add_bool
(
SOUT_CFG_PREFIX
"rtcp"
,
VLC_FALSE
,
NULL
,
RAW_TEXT
,
RAW_LONGTEXT
,
add_obsolete_bool
(
SOUT_CFG_PREFIX
"raw"
);
add_bool
(
SOUT_CFG_PREFIX
"rtcp"
,
VLC_FALSE
,
NULL
,
RTCP_TEXT
,
RTCP_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"rtcp-port"
,
0
,
NULL
,
RTCP_PORT_TEXT
,
RTCP_PORT_LONGTEXT
,
VLC_TRUE
);
...
...
@@ -145,7 +139,6 @@ static const char *const ppsz_sout_options[] = {
"auto-mcast"
,
"caching"
,
"group"
,
"raw"
,
"rtcp"
,
"rtcp-port"
,
"lite"
,
...
...
@@ -163,7 +156,6 @@ static const char *const ppsz_core_options[] = {
};
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
);
static
void
ThreadWrite
(
vlc_object_t
*
);
...
...
@@ -392,11 +384,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
if
(
var_GetBool
(
p_access
,
SOUT_CFG_PREFIX
"raw"
))
p_access
->
pf_write
=
WriteRaw
;
else
p_access
->
pf_write
=
Write
;
p_access
->
pf_write
=
Write
;
p_access
->
pf_seek
=
Seek
;
/* update p_sout->i_out_pace_nocontrol */
...
...
@@ -528,27 +516,6 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
return
(
p_sys
->
p_thread
->
b_error
?
-
1
:
i_len
);
}
/*****************************************************************************
* WriteRaw: write p_buffer without trying to fill mtu
*****************************************************************************/
static
int
WriteRaw
(
sout_access_out_t
*
p_access
,
block_t
*
p_buffer
)
{
sout_access_out_sys_t
*
p_sys
=
p_access
->
p_sys
;
block_t
*
p_buf
;
int
i_len
;
while
(
p_sys
->
p_thread
->
p_empty_blocks
->
i_depth
>=
MAX_EMPTY_BLOCKS
)
{
p_buf
=
block_FifoGet
(
p_sys
->
p_thread
->
p_empty_blocks
);
block_Release
(
p_buf
);
}
i_len
=
p_buffer
->
i_buffer
;
block_FifoPut
(
p_sys
->
p_thread
->
p_fifo
,
p_buffer
);
return
(
p_sys
->
p_thread
->
b_error
?
-
1
:
i_len
);
}
/*****************************************************************************
* Seek: seek to a specific location in a file
*****************************************************************************/
...
...
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