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
cafc7687
Commit
cafc7687
authored
Nov 20, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oss: return NULL iso 0 when pointer is expected.
parent
5a1b6873
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/access/oss.c
modules/access/oss.c
+3
-3
No files found.
modules/access/oss.c
View file @
cafc7687
...
...
@@ -307,7 +307,7 @@ static block_t* GrabAudio( demux_t *p_demux )
if
(
!
p_block
)
{
msg_Warn
(
p_demux
,
"cannot get block"
);
return
0
;
return
NULL
;
}
p_sys
->
p_block
=
p_block
;
...
...
@@ -315,10 +315,10 @@ static block_t* GrabAudio( demux_t *p_demux )
i_read
=
read
(
p_sys
->
i_fd
,
p_block
->
p_buffer
,
p_sys
->
i_max_frame_size
);
if
(
i_read
<=
0
)
return
0
;
if
(
i_read
<=
0
)
return
NULL
;
p_block
->
i_buffer
=
i_read
;
p_sys
->
p_block
=
0
;
p_sys
->
p_block
=
NULL
;
/* Correct the date because of kernel buffering */
i_correct
=
i_read
;
...
...
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