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
c616165f
Commit
c616165f
authored
Feb 13, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.16.x'
Conflicts: NEWS configure.ac src/decoder/ffmpeg_decoder_plugin.c test/read_tags.c
parents
edac498d
10383274
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
6 deletions
+24
-6
NEWS
NEWS
+7
-0
ffmpeg_metadata.c
src/decoder/ffmpeg_metadata.c
+1
-1
decoder_api.c
src/decoder_api.c
+6
-0
winmm_output_plugin.c
src/output/winmm_output_plugin.c
+1
-5
pcm_buffer.c
src/pcm_buffer.c
+5
-0
pcm_buffer.h
src/pcm_buffer.h
+4
-0
No files found.
NEWS
View file @
c616165f
...
...
@@ -35,6 +35,13 @@ ver 0.17 (2011/??/??)
* support floating point samples
ver 0.16.8 (2012/??/??)
* fix for libsamplerate assertion failure
* decoder:
- vorbis (and others): fix seeking at startup
- ffmpeg: read the "year" tag
ver 0.16.7 (2012/02/04)
* input:
- ffmpeg: support libavformat 0.7
...
...
src/decoder/ffmpeg_metadata.c
View file @
c616165f
...
...
@@ -28,8 +28,8 @@
static
const
struct
tag_table
ffmpeg_tags
[]
=
{
#if LIBAVFORMAT_VERSION_INT < ((52<<16)+(50<<8))
{
"author"
,
TAG_ARTIST
},
{
"year"
,
TAG_DATE
},
#endif
{
"year"
,
TAG_DATE
},
{
"author-sort"
,
TAG_ARTIST_SORT
},
{
"album_artist"
,
TAG_ALBUM_ARTIST
},
{
"album_artist-sort"
,
TAG_ALBUM_ARTIST_SORT
},
...
...
src/decoder_api.c
View file @
c616165f
...
...
@@ -90,6 +90,12 @@ decoder_prepare_initial_seek(struct decoder *decoder)
const
struct
decoder_control
*
dc
=
decoder
->
dc
;
assert
(
dc
->
pipe
!=
NULL
);
if
(
dc
->
state
!=
DECODE_STATE_DECODE
)
/* wait until the decoder has finished initialisation
(reading file headers etc.) before emitting the
virtual "SEEK" command */
return
false
;
if
(
decoder
->
initial_seek_running
)
/* initial seek has already begun - override any other
command */
...
...
src/output/winmm_output_plugin.c
View file @
c616165f
...
...
@@ -224,11 +224,7 @@ winmm_set_buffer(struct winmm_output *wo, struct winmm_buffer *buffer,
GError
**
error_r
)
{
void
*
dest
=
pcm_buffer_get
(
&
buffer
->
buffer
,
size
);
if
(
dest
==
NULL
)
{
g_set_error
(
error_r
,
winmm_output_quark
(),
0
,
"Out of memory"
);
return
false
;
}
assert
(
dest
!=
NULL
);
memcpy
(
dest
,
data
,
size
);
...
...
src/pcm_buffer.c
View file @
c616165f
...
...
@@ -36,6 +36,11 @@ pcm_buffer_get(struct pcm_buffer *buffer, size_t size)
{
assert
(
buffer
!=
NULL
);
if
(
size
==
0
)
/* never return NULL, because NULL would be assumed to
be an error condition */
size
=
1
;
if
(
buffer
->
size
<
size
)
{
/* free the old buffer */
g_free
(
buffer
->
buffer
);
...
...
src/pcm_buffer.h
View file @
c616165f
...
...
@@ -65,6 +65,10 @@ pcm_buffer_deinit(struct pcm_buffer *buffer)
/**
* Get the buffer, and guarantee a minimum size. This buffer becomes
* invalid with the next pcm_buffer_get() call.
*
* This function will never return NULL, even if size is zero, because
* the PCM library uses the NULL return value to signal "error". An
* empty destination buffer is not always an error.
*/
G_GNUC_MALLOC
void
*
...
...
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