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
03a401e4
Commit
03a401e4
authored
Oct 02, 2012
by
Gregory Smith
Committed by
Max Kellermann
Oct 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX: Set mDataByteSize correctly on AudioBuffers during render.
parent
9994521b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
NEWS
NEWS
+1
-0
osx_output_plugin.c
src/output/osx_output_plugin.c
+7
-3
No files found.
NEWS
View file @
03a401e4
ver 0.17.3 (2012/??/??)
ver 0.17.3 (2012/??/??)
* output:
* output:
- osx: fix pops during playback
- recorder: fix I/O error check
- recorder: fix I/O error check
- shout: fix memory leak in error handler
- shout: fix memory leak in error handler
- recorder, shout: support Ogg packets that span more than one page
- recorder, shout: support Ogg packets that span more than one page
...
...
src/output/osx_output_plugin.c
View file @
03a401e4
...
@@ -228,9 +228,13 @@ osx_render(void *vdata,
...
@@ -228,9 +228,13 @@ osx_render(void *vdata,
g_cond_signal
(
od
->
condition
);
g_cond_signal
(
od
->
condition
);
g_mutex_unlock
(
od
->
mutex
);
g_mutex_unlock
(
od
->
mutex
);
if
(
nbytes
<
buffer_size
)
buffer
->
mDataByteSize
=
nbytes
;
memset
((
unsigned
char
*
)
buffer
->
mData
+
nbytes
,
0
,
buffer_size
-
nbytes
);
unsigned
i
;
for
(
i
=
1
;
i
<
buffer_list
->
mNumberBuffers
;
++
i
)
{
buffer
=
&
buffer_list
->
mBuffers
[
i
];
buffer
->
mDataByteSize
=
0
;
}
return
0
;
return
0
;
}
}
...
...
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