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
7e462770
Commit
7e462770
authored
Feb 19, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.20.x'
parents
3b84b998
f3b78870
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
6 deletions
+16
-6
NEWS
NEWS
+2
-0
tags.xml
doc/include/tags.xml
+4
-2
AlsaInputPlugin.cxx
src/input/plugins/AlsaInputPlugin.cxx
+1
-0
AlsaMixerPlugin.cxx
src/mixer/plugins/AlsaMixerPlugin.cxx
+1
-0
IcyMetaDataServer.cxx
src/output/plugins/httpd/IcyMetaDataServer.cxx
+7
-3
Handler.cxx
src/tag/Handler.cxx
+1
-1
No files found.
NEWS
View file @
7e462770
...
...
@@ -10,6 +10,8 @@ ver 0.20.5 (not yet released)
- id3: fix memory leak on corrupt ID3 tags
* decoder
- sidplay: don't require libsidutils when building with libsidplayfp
* output
- httpd: fix two buffer overflows in IcyMetaData length calculation
* mixer
- alsa: fix crash bug
...
...
doc/include/tags.xml
View file @
7e462770
...
...
@@ -55,7 +55,8 @@
<listitem>
<para>
<varname>
track
</varname>
: the track number within the album.
<varname>
track
</varname>
: the decimal track number within the
album.
</para>
</listitem>
...
...
@@ -103,7 +104,8 @@
<listitem>
<para>
<varname>
disc
</varname>
: the disc number in a multi-disc album.
<varname>
disc
</varname>
: the decimal disc number in a multi-disc
album.
</para>
</listitem>
...
...
src/input/plugins/AlsaInputPlugin.cxx
View file @
7e462770
...
...
@@ -101,6 +101,7 @@ public:
~
AlsaInputStream
()
{
BlockingCall
(
MultiSocketMonitor
::
GetEventLoop
(),
[
this
](){
MultiSocketMonitor
::
Reset
();
DeferredMonitor
::
Cancel
();
});
snd_pcm_close
(
capture_handle
);
...
...
src/mixer/plugins/AlsaMixerPlugin.cxx
View file @
7e462770
...
...
@@ -58,6 +58,7 @@ public:
~
AlsaMixerMonitor
()
{
BlockingCall
(
MultiSocketMonitor
::
GetEventLoop
(),
[
this
](){
MultiSocketMonitor
::
Reset
();
DeferredMonitor
::
Cancel
();
});
}
...
...
src/output/plugins/httpd/IcyMetaDataServer.cxx
View file @
7e462770
...
...
@@ -60,7 +60,11 @@ icy_server_metadata_string(const char *stream_title, const char* stream_url)
{
// The leading n is a placeholder for the length information
auto
icy_metadata
=
FormatString
(
"nStreamTitle='%s';"
"StreamUrl='%s';"
,
"StreamUrl='%s';"
/* pad 15 spaces just in case
the length needs to be
rounded up */
" "
,
stream_title
,
stream_url
);
...
...
@@ -68,7 +72,7 @@ icy_server_metadata_string(const char *stream_title, const char* stream_url)
meta_length
--
;
// subtract placeholder
meta_length
=
((
int
)
meta_length
/
16
)
+
1
;
meta_length
=
meta_length
/
16
;
icy_metadata
[
0
]
=
meta_length
;
...
...
@@ -109,5 +113,5 @@ icy_server_metadata_page(const Tag &tag, const TagType *types)
if
(
icy_string
.
IsNull
())
return
nullptr
;
return
Page
::
Copy
(
icy_string
.
c_str
(),
(
icy_string
[
0
]
*
16
)
+
1
);
return
Page
::
Copy
(
icy_string
.
c_str
(),
uint8_t
(
icy_string
[
0
])
*
16
+
1
);
}
src/tag/Handler.cxx
View file @
7e462770
...
...
@@ -44,7 +44,7 @@ add_tag_tag(TagType type, const char *value, void *ctx)
unsigned
n
=
strtoul
(
value
,
&
end
,
10
);
if
(
value
!=
end
)
{
char
s
[
21
];
if
(
snprintf
(
s
,
21
,
"%u"
,
n
)
>
=
0
)
if
(
snprintf
(
s
,
21
,
"%u"
,
n
)
>
0
)
tag
.
AddItem
(
type
,
s
);
}
}
else
...
...
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