Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
cd4cd776
Commit
cd4cd776
authored
Aug 18, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* udp: udp-sout-caching is now also accessible by instance variable
"caching". (ex: udp{caching=ms})
parent
176639fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/access_output/udp.c
modules/access_output/udp.c
+9
-6
No files found.
modules/access_output/udp.c
View file @
cd4cd776
...
...
@@ -2,7 +2,7 @@
* udp.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: udp.c,v 1.1
2 2003/08/01 19:38
:48 fenrir Exp $
* $Id: udp.c,v 1.1
3 2003/08/18 17:30
:48 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -96,6 +96,8 @@ typedef struct sout_access_thread_s
int
i_handle
;
int64_t
i_caching
;
}
sout_access_thread_t
;
struct
sout_access_out_sys_t
...
...
@@ -209,6 +211,11 @@ static int Open( vlc_object_t *p_this )
module_Unneed
(
p_sys
->
p_thread
,
p_network
);
p_sys
->
p_thread
->
i_handle
=
socket_desc
.
i_handle
;
p_sys
->
p_thread
->
i_caching
=
config_GetInt
(
p_this
,
"udp-sout-caching"
)
*
1000
;
if
(
(
val
=
sout_cfg_find_value
(
p_access
->
p_cfg
,
"caching"
)
)
)
{
p_sys
->
p_thread
->
i_caching
=
atoll
(
val
)
*
1000
;
}
p_sys
->
i_mtu
=
socket_desc
.
i_mtu
;
if
(
vlc_thread_create
(
p_sys
->
p_thread
,
"sout write thread"
,
ThreadWrite
,
...
...
@@ -380,12 +387,8 @@ static void ThreadWrite( vlc_object_t *p_this )
{
sout_access_thread_t
*
p_thread
=
(
sout_access_thread_t
*
)
p_this
;
sout_instance_t
*
p_sout
=
p_thread
->
p_sout
;
mtime_t
i_pts_delay
;
mtime_t
i_date_last
=
-
1
;
/* Get the i_pts_delay value */
i_pts_delay
=
config_GetInt
(
p_this
,
"udp-sout-caching"
)
*
1000
;
while
(
!
p_thread
->
b_die
)
{
sout_buffer_t
*
p_pk
;
...
...
@@ -393,7 +396,7 @@ static void ThreadWrite( vlc_object_t *p_this )
p_pk
=
sout_FifoGet
(
p_thread
->
p_fifo
);
i_date
=
i_pts_delay
+
p_pk
->
i_dts
;
i_date
=
p_thread
->
i_caching
+
p_pk
->
i_dts
;
if
(
i_date_last
>
0
)
{
if
(
i_date
-
i_date_last
>
2000000
)
...
...
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