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
ea96919b
Commit
ea96919b
authored
Dec 23, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.19.x'
parents
5835afb8
43da4c0e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
8 deletions
+28
-8
NEWS
NEWS
+6
-0
AndroidManifest.xml
android/AndroidManifest.xml
+2
-2
DsdLib.cxx
src/decoder/plugins/DsdLib.cxx
+13
-6
MmsInputPlugin.cxx
src/input/plugins/MmsInputPlugin.cxx
+7
-0
No files found.
NEWS
View file @
ea96919b
...
...
@@ -18,6 +18,12 @@ ver 0.20 (not yet released)
* reset song priority on playback
* remove dependency on GLib
ver 0.19.8 (not yet released)
* input
- mms: reduce delay at the beginning of playback
* decoder
- dsdiff, dsf: allow ID3 tags larger than 4 kB
ver 0.19.7 (2014/12/17)
* input
- nfs: fix crash while canceling a failing file open operation
...
...
android/AndroidManifest.xml
View file @
ea96919b
...
...
@@ -2,8 +2,8 @@
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.musicpd"
android:installLocation=
"auto"
android:versionCode=
"1
0
"
android:versionName=
"0.19.
6
"
>
android:versionCode=
"1
2
"
android:versionName=
"0.19.
8
"
>
<uses-sdk
android:minSdkVersion=
"9"
android:targetSdkVersion=
"17"
/>
...
...
src/decoder/plugins/DsdLib.cxx
View file @
ea96919b
...
...
@@ -29,8 +29,10 @@
#include "input/InputStream.hxx"
#include "tag/TagId3.hxx"
#include "util/Error.hxx"
#include "util/Alloc.hxx"
#include <string.h>
#include <stdlib.h>
#ifdef ENABLE_ID3TAG
#include <id3tag.h>
...
...
@@ -123,22 +125,27 @@ dsdlib_tag_id3(InputStream &is,
const
id3_length_t
count
=
size
-
offset
;
/* Check and limit id3 tag size to prevent a stack overflow */
id3_byte_t
dsdid3
[
4096
];
if
(
count
==
0
||
count
>
sizeof
(
dsdid3
))
if
(
count
<
10
||
count
>
256
*
1024
)
return
;
if
(
!
decoder_read_full
(
nullptr
,
is
,
dsdid3
,
count
))
id3_byte_t
*
const
id3_buf
=
static_cast
<
id3_byte_t
*>
(
xalloc
(
count
));
if
(
!
decoder_read_full
(
nullptr
,
is
,
id3_buf
,
count
))
{
free
(
id3_buf
);
return
;
}
struct
id3_tag
*
id3_tag
=
id3_tag_parse
(
dsdid3
,
count
);
if
(
id3_tag
==
nullptr
)
struct
id3_tag
*
id3_tag
=
id3_tag_parse
(
id3_buf
,
count
);
if
(
id3_tag
==
nullptr
)
{
free
(
id3_buf
);
return
;
}
scan_id3_tag
(
id3_tag
,
handler
,
handler_ctx
);
id3_tag_delete
(
id3_tag
);
free
(
id3_buf
);
return
;
}
#endif
src/input/plugins/MmsInputPlugin.cxx
View file @
ea96919b
...
...
@@ -92,6 +92,13 @@ input_mms_open(const char *url,
size_t
MmsInputStream
::
ThreadRead
(
void
*
ptr
,
size_t
read_size
,
Error
&
error
)
{
/* unfortunately, mmsx_read() blocks until the whole buffer
has been filled; to avoid big latencies, limit the size of
each chunk we read to a reasonable size */
constexpr
size_t
MAX_CHUNK
=
16384
;
if
(
read_size
>
MAX_CHUNK
)
read_size
=
MAX_CHUNK
;
int
nbytes
=
mmsx_read
(
nullptr
,
mms
,
(
char
*
)
ptr
,
read_size
);
if
(
nbytes
<=
0
)
{
if
(
nbytes
<
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