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
aa4f45b9
Commit
aa4f45b9
authored
Dec 13, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.16.x'
Conflicts: NEWS configure.ac
parents
006b8fa3
96ad5b84
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
16 deletions
+36
-16
.gitignore
.gitignore
+1
-0
NEWS
NEWS
+8
-2
configure.ac
configure.ac
+9
-0
cmdline.c
src/cmdline.c
+0
-2
mp4ff_decoder_plugin.c
src/decoder/mp4ff_decoder_plugin.c
+6
-0
openal_output_plugin.c
src/output/openal_output_plugin.c
+4
-10
timer.c
src/timer.c
+1
-1
update_walk.c
src/update_walk.c
+2
-0
utils.c
src/utils.c
+5
-1
No files found.
.gitignore
View file @
aa4f45b9
...
...
@@ -34,6 +34,7 @@ missing
mkinstalldirs
mpd
mpd.exe
mpd.service
stamp-h1
tags
*~
...
...
NEWS
View file @
aa4f45b9
...
...
@@ -29,7 +29,13 @@ ver 0.17 (2011/??/??)
* support floating point samples
ver 0.16.6 (2010/??/??)
ver 0.16.7 (2011/??/??)
* output:
- httpd: fix excessive buffering
- openal: force 16 bit playback, as 8 bit doesn't work
ver 0.16.6 (2011/12/01)
* decoder:
- fix assertion failure when resuming streams
- ffmpeg: work around bogus channel count
...
...
@@ -44,7 +50,7 @@ ver 0.16.6 (2010/??/??)
* WIN32: autodetect filesystem encoding
ver 0.16.5 (201
0
/10/09)
ver 0.16.5 (201
1
/10/09)
* configure.ac
- disable assertions in the non-debugging build
- show solaris plugin result correctly
...
...
configure.ac
View file @
aa4f45b9
...
...
@@ -440,6 +440,11 @@ dnl ---------------------------------------------------------------------------
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.12 gthread-2.0],,
[AC_MSG_ERROR([GLib 2.12 is required])])
if test x$GCC = xyes; then
# suppress warnings in the GLib headers
GLIB_CFLAGS=`echo $GLIB_CFLAGS |sed -e 's,-I/,-isystem /,g'`
fi
dnl ---------------------------------------------------------------------------
dnl Protocol Options
dnl ---------------------------------------------------------------------------
...
...
@@ -454,7 +459,11 @@ if test x$enable_ipv6 = xyes; then
AC_EGREP_CPP([AP_maGiC_VALUE],
[
#include <sys/types.h>
#ifdef WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>
#endif
#include <netdb.h>
#ifdef PF_INET6
#ifdef AF_INET6
...
...
src/cmdline.c
View file @
aa4f45b9
...
...
@@ -194,8 +194,6 @@ parse_cmdline(int argc, char **argv, struct options *options,
if
(
g_file_test
(
system_path
,
G_FILE_TEST_IS_REGULAR
))
{
ret
=
config_read_file
(
system_path
,
error_r
);
g_free
(
system_path
);
g_free
(
&
system_config_dirs
);
break
;
}
++
i
;;
...
...
src/decoder/mp4ff_decoder_plugin.c
View file @
aa4f45b9
...
...
@@ -94,6 +94,12 @@ mp4_read(void *user_data, void *buffer, uint32_t length)
{
struct
mp4ff_input_stream
*
mis
=
user_data
;
if
(
length
==
0
)
/* libmp4ff is known to attempt to read 0 bytes - make
this a special case, because the input_stream API
would not allow this */
return
0
;
return
decoder_read
(
mis
->
decoder
,
mis
->
input_stream
,
buffer
,
length
);
}
...
...
src/output/openal_output_plugin.c
View file @
aa4f45b9
...
...
@@ -61,6 +61,10 @@ openal_output_quark(void)
static
ALenum
openal_audio_format
(
struct
audio_format
*
audio_format
)
{
/* note: cannot map SAMPLE_FORMAT_S8 to AL_FORMAT_STEREO8 or
AL_FORMAT_MONO8 since OpenAL expects unsigned 8 bit
samples, while MPD uses signed samples */
switch
(
audio_format
->
format
)
{
case
SAMPLE_FORMAT_S16
:
if
(
audio_format
->
channels
==
2
)
...
...
@@ -72,16 +76,6 @@ openal_audio_format(struct audio_format *audio_format)
audio_format
->
channels
=
1
;
return
openal_audio_format
(
audio_format
);
case
SAMPLE_FORMAT_S8
:
if
(
audio_format
->
channels
==
2
)
return
AL_FORMAT_STEREO8
;
if
(
audio_format
->
channels
==
1
)
return
AL_FORMAT_MONO8
;
/* fall back to mono */
audio_format
->
channels
=
1
;
return
openal_audio_format
(
audio_format
);
default:
/* fall back to 16 bit */
audio_format
->
format
=
SAMPLE_FORMAT_S16
;
...
...
src/timer.c
View file @
aa4f45b9
...
...
@@ -81,7 +81,7 @@ timer_delay(const struct timer *timer)
if
(
delay
>
G_MAXINT
)
delay
=
G_MAXINT
;
return
delay
/
1000
;
return
delay
;
}
void
timer_sync
(
struct
timer
*
timer
)
...
...
src/update_walk.c
View file @
aa4f45b9
...
...
@@ -616,6 +616,8 @@ update_regular_file(struct directory *directory,
}
if
(
song
==
NULL
)
{
g_debug
(
"reading %s/%s"
,
directory_get_path
(
directory
),
name
);
song
=
song_file_load
(
name
,
directory
);
if
(
song
==
NULL
)
{
g_debug
(
"ignoring unrecognized file %s/%s"
,
...
...
src/utils.c
View file @
aa4f45b9
...
...
@@ -34,7 +34,11 @@
#include <pwd.h>
#endif
#ifdef HAVE_IPV6
#if HAVE_IPV6 && WIN32
#include <winsock2.h>
#endif
#if HAVE_IPV6 && ! WIN32
#include <sys/socket.h>
#endif
...
...
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