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
607b5458
Commit
607b5458
authored
Dec 21, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix error handling
- Fix a warning
parent
2004f95f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/access/udp.c
modules/access/udp.c
+7
-6
No files found.
modules/access/udp.c
View file @
607b5458
...
...
@@ -326,16 +326,17 @@ static block_t *BlockUDP( access_t *p_access )
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
block_t
*
p_block
;
ssize_t
len
;
if
(
p_access
->
info
.
b_eof
)
return
NULL
;
/* Read data */
p_block
=
block_New
(
p_access
,
MTU
);
p_block
->
i_buffer
=
net_Read
(
p_access
,
p_sys
->
fd
,
NULL
,
len
=
net_Read
(
p_access
,
p_sys
->
fd
,
NULL
,
p_block
->
p_buffer
,
MTU
,
VLC_FALSE
);
if
(
(
p_block
->
i_buffer
<
0
)
||
(
p_sys
->
b_comedia
&&
(
p_block
->
i_buffer
==
0
)
)
)
if
(
(
len
<
0
)
||
(
p_sys
->
b_comedia
&&
(
len
==
0
)
)
)
{
if
(
p_sys
->
b_comedia
)
{
...
...
@@ -346,7 +347,7 @@ static block_t *BlockUDP( access_t *p_access )
return
NULL
;
}
return
block_Realloc
(
p_block
,
0
,
p_block
->
i_buffer
);
return
block_Realloc
(
p_block
,
0
,
p_block
->
i_buffer
=
len
);
}
/*****************************************************************************
...
...
@@ -395,7 +396,7 @@ static block_t *BlockTCP( access_t *p_access )
p_block
->
i_buffer
+=
i_read
;
}
if
(
p_block
->
i_buffer
<
(
2
+
framelen
)
)
if
(
p_block
->
i_buffer
<
(
2
u
+
framelen
)
)
return
NULL
;
// incomplete frame
/* Hide framing from RTP layer */
...
...
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