Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c661b609
Commit
c661b609
authored
Nov 22, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access_oss: return NULL instead of 0.
parent
99ebae0c
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 @
c661b609
...
...
@@ -304,7 +304,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
;
...
...
@@ -312,10 +312,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