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
8ee331bf
Commit
8ee331bf
authored
Nov 11, 2005
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forwardport [13195]
parent
3c3f388b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
modules/access/udp.c
modules/access/udp.c
+17
-14
No files found.
modules/access/udp.c
View file @
8ee331bf
...
...
@@ -99,7 +99,7 @@ struct access_sys_t
vlc_bool_t
b_auto_mtu
;
/* reorder rtp packets when out-of-sequence */
int64
_t
i_rtp_late
;
mtime
_t
i_rtp_late
;
uint16_t
i_last_seqno
;
block_t
*
p_list
;
block_t
*
p_end
;
...
...
@@ -458,6 +458,7 @@ static block_t *BlockParseRTP( access_t *p_access, block_t *p_block )
/* Return the packet without the RTP header, remember seqno in i_dts */
p_block
->
i_buffer
-=
i_skip
;
p_block
->
p_buffer
+=
i_skip
;
p_block
->
i_pts
=
mdate
();
p_block
->
i_dts
=
(
mtime_t
)
i_sequence_number
;
#if 0
...
...
@@ -482,19 +483,19 @@ trash:
static
block_t
*
BlockPrebufferRTP
(
access_t
*
p_access
,
block_t
*
p_block
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int64
_t
i_first
=
mdate
();
mtime
_t
i_first
=
mdate
();
int
i_count
=
0
;
block_t
*
p
=
p_block
;
for
(
;;
)
{
int64
_t
i_date
=
mdate
();
mtime
_t
i_date
=
mdate
();
if
(
p
&&
rtp_ChainInsert
(
p_access
,
p
))
i_count
++
;
/* Require at least
3
packets in the buffer */
if
(
i_count
>
3
&&
(
i_date
-
i_first
)
>
p_sys
->
i_rtp_late
)
/* Require at least
2
packets in the buffer */
if
(
i_count
>
2
&&
(
i_date
-
i_first
)
>
p_sys
->
i_rtp_late
)
break
;
p
=
BlockParseRTP
(
p_access
,
BlockUDP
(
p_access
));
...
...
@@ -519,17 +520,19 @@ static block_t *BlockRTP( access_t *p_access )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
block_t
*
p
;
again:
p
=
BlockParseRTP
(
p_access
,
BlockUDP
(
p_access
));
if
(
!
p
)
return
NULL
;
while
(
!
p_sys
->
p_list
||
(
mdate
()
-
p_sys
->
p_list
->
i_pts
)
<
p_sys
->
i_rtp_late
)
{
p
=
BlockParseRTP
(
p_access
,
BlockUDP
(
p_access
));
if
(
!
p_access
->
info
.
b_prebuffered
)
return
BlockPrebufferRTP
(
p_access
,
p
)
;
if
(
!
p
)
return
NULL
;
if
(
!
rtp_ChainInsert
(
p_access
,
p
))
goto
again
;
if
(
!
p_access
->
info
.
b_prebuffered
)
return
BlockPrebufferRTP
(
p_access
,
p
);
rtp_ChainInsert
(
p_access
,
p
);
}
p
=
p_sys
->
p_list
;
p_sys
->
p_list
=
p_sys
->
p_list
->
p_next
;
...
...
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