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
78a52d4d
Commit
78a52d4d
authored
May 11, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access/alsa.c: use NULL iso 0 with pointers.
Use NULL instead of 0 for clearing or returning a pointer.
parent
6488ad92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/access/alsa.c
modules/access/alsa.c
+4
-4
No files found.
modules/access/alsa.c
View file @
78a52d4d
...
...
@@ -372,7 +372,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
;
...
...
@@ -402,7 +402,7 @@ static block_t* GrabAudio( demux_t *p_demux )
}
default:
msg_Err
(
p_demux
,
"Failed to read alsa frame (%s)"
,
snd_strerror
(
i_read
)
);
return
0
;
return
NULL
;
}
}
else
...
...
@@ -411,10 +411,10 @@ static block_t* GrabAudio( demux_t *p_demux )
i_read
*=
p_sys
->
i_alsa_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