Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
54982f75
Commit
54982f75
authored
Feb 10, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ao: declare AoData.writeSize as size_t
writeSize is a memory size and its type should thus be size_t. This allows us to remove two explicit casts.
parent
fe142647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ao_plugin.c
src/output/ao_plugin.c
+3
-3
No files found.
src/output/ao_plugin.c
View file @
54982f75
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
static
int
driverInitCount
;
static
int
driverInitCount
;
typedef
struct
_AoData
{
typedef
struct
_AoData
{
in
t
writeSize
;
size_
t
writeSize
;
int
driverId
;
int
driverId
;
ao_option
*
options
;
ao_option
*
options
;
ao_device
*
device
;
ao_device
*
device
;
...
@@ -218,8 +218,8 @@ audioOutputAo_play(void *data, const char *playChunk, size_t size)
...
@@ -218,8 +218,8 @@ audioOutputAo_play(void *data, const char *playChunk, size_t size)
return
false
;
return
false
;
while
(
size
>
0
)
{
while
(
size
>
0
)
{
chunk_size
=
(
size_t
)
ad
->
writeSize
>
size
chunk_size
=
ad
->
writeSize
>
size
?
size
:
(
size_t
)
ad
->
writeSize
;
?
size
:
ad
->
writeSize
;
if
(
ao_play_deconst
(
ad
->
device
,
playChunk
,
chunk_size
)
==
0
)
{
if
(
ao_play_deconst
(
ad
->
device
,
playChunk
,
chunk_size
)
==
0
)
{
audioOutputAo_error
(
"Closing libao device due to play error"
);
audioOutputAo_error
(
"Closing libao device due to play error"
);
...
...
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