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
c175d930
Commit
c175d930
authored
Mar 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: premultiply timeout value to VLC frequency
parent
ac9f4d32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
modules/access/rtp/rtp.c
modules/access/rtp/rtp.c
+2
-1
modules/access/rtp/rtp.h
modules/access/rtp/rtp.h
+2
-2
modules/access/rtp/session.c
modules/access/rtp/session.c
+1
-1
No files found.
modules/access/rtp/rtp.c
View file @
c175d930
...
...
@@ -256,7 +256,8 @@ static int Open (vlc_object_t *obj)
p_sys
->
rtcp_fd
=
rtcp_fd
;
p_sys
->
caching
=
var_CreateGetInteger
(
obj
,
"rtp-caching"
);
p_sys
->
max_src
=
var_CreateGetInteger
(
obj
,
"rtp-max-src"
);
p_sys
->
timeout
=
var_CreateGetInteger
(
obj
,
"rtp-timeout"
);
p_sys
->
timeout
=
var_CreateGetInteger
(
obj
,
"rtp-timeout"
)
*
CLOCK_FREQ
;
p_sys
->
max_dropout
=
var_CreateGetInteger
(
obj
,
"rtp-max-dropout"
);
p_sys
->
max_misorder
=
var_CreateGetInteger
(
obj
,
"rtp-max-misorder"
);
p_sys
->
framed_rtp
=
(
tp
==
IPPROTO_TCP
);
...
...
modules/access/rtp/rtp.h
View file @
c175d930
...
...
@@ -60,14 +60,14 @@ struct demux_sys_t
vlc_thread_t
thread
;
vlc_timer_t
timer
;
vlc_mutex_t
lock
;
bool
thread_ready
;
mtime_t
timeout
;
unsigned
caching
;
unsigned
timeout
;
uint16_t
max_dropout
;
/**< Max packet forward misordering */
uint16_t
max_misorder
;
/**< Max packet backward misordering */
uint8_t
max_src
;
/**< Max simultaneous RTP sources */
bool
framed_rtp
;
/**< Framed RTP packets over TCP */
bool
thread_ready
;
#if 0
bool dead; /**< End of stream */
#endif
...
...
modules/access/rtp/session.c
View file @
c175d930
...
...
@@ -266,7 +266,7 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
}
/* RTP source garbage collection */
if
((
tmp
->
last_rx
+
(
p_sys
->
timeout
*
CLOCK_FREQ
)
)
<
now
)
if
((
tmp
->
last_rx
+
p_sys
->
timeout
)
<
now
)
{
rtp_source_destroy
(
demux
,
session
,
tmp
);
if
(
--
session
->
srcc
>
0
)
...
...
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