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
eb14a72b
Commit
eb14a72b
authored
Feb 13, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark EOF in case of connection-orinted RTP transport
parent
d11f9534
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/access/udp.c
modules/access/udp.c
+10
-7
No files found.
modules/access/udp.c
View file @
eb14a72b
...
...
@@ -360,7 +360,9 @@ static block_t *BlockTCP( access_t *p_access )
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
block_t
*
p_block
=
p_sys
->
p_partial_frame
;
int
i_read
;
if
(
p_access
->
info
.
b_eof
)
return
NULL
;
if
(
p_block
==
NULL
)
{
...
...
@@ -374,9 +376,9 @@ static block_t *BlockTCP( access_t *p_access )
if
(
p_block
->
i_buffer
<
2
)
{
/* FIXME: not very efficient */
i_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
NULL
,
p_block
->
p_buffer
+
p_block
->
i_buffer
,
2
-
p_block
->
i_buffer
,
VLC_FALSE
);
i
nt
i
_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
NULL
,
p_block
->
p_buffer
+
p_block
->
i_buffer
,
2
-
p_block
->
i_buffer
,
VLC_FALSE
);
if
(
i_read
<=
0
)
goto
error
;
...
...
@@ -389,9 +391,9 @@ static block_t *BlockTCP( access_t *p_access )
/* Read RTP frame */
if
(
framelen
>
0
)
{
i_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
NULL
,
p_block
->
p_buffer
+
p_block
->
i_buffer
,
2
+
framelen
-
p_block
->
i_buffer
,
VLC_FALSE
);
i
nt
i
_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
NULL
,
p_block
->
p_buffer
+
p_block
->
i_buffer
,
2
+
framelen
-
p_block
->
i_buffer
,
VLC_FALSE
);
if
(
i_read
<=
0
)
goto
error
;
...
...
@@ -408,6 +410,7 @@ static block_t *BlockTCP( access_t *p_access )
return
p_block
;
error:
p_access
->
info
.
b_eof
=
VLC_TRUE
;
block_Release
(
p_block
);
p_sys
->
p_partial_frame
=
NULL
;
return
NULL
;
...
...
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