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
9cdbde4f
Commit
9cdbde4f
authored
Sep 25, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output: new option "tags" may be used to disable sending tags
Implements Mantis ticket 0003340.
parent
f9147a07
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
1 deletion
+23
-1
NEWS
NEWS
+2
-0
user.xml
doc/user.xml
+12
-0
output_init.c
src/output_init.c
+1
-0
output_internal.h
src/output_internal.h
+7
-0
output_thread.c
src/output_thread.c
+1
-1
No files found.
NEWS
View file @
9cdbde4f
...
...
@@ -3,6 +3,8 @@ ver 0.18 (2012/??/??)
- adplug: new decoder plugin using libadplug
- opus: new decoder plugin for the Opus codec
- vorbis: skip 16 bit quantisation, provide float samples
* output:
- new option "tags" may be used to disable sending tags to output
* improved decoder/output error reporting
ver 0.17.2 (2012/??/??)
...
...
doc/user.xml
View file @
9cdbde4f
...
...
@@ -438,6 +438,18 @@ systemctl start mpd.socket</programlisting>
</row>
<row>
<entry>
<varname>
tags
</varname>
<parameter>
yes|no
</parameter>
</entry>
<entry>
If set to "no", then MPD will not send tags to this
output. This is only useful for output plugins that
can receive tags, for example the
<varname>
httpd
</varname>
output plugin.
</entry>
</row>
<row>
<entry>
<varname>
always_on
</varname>
<parameter>
yes|no
</parameter>
</entry>
...
...
src/output_init.c
View file @
9cdbde4f
...
...
@@ -165,6 +165,7 @@ ao_base_init(struct audio_output *ao,
}
ao
->
plugin
=
plugin
;
ao
->
tags
=
config_get_block_bool
(
param
,
"tags"
,
true
);
ao
->
always_on
=
config_get_block_bool
(
param
,
"always_on"
,
false
);
ao
->
enabled
=
config_get_block_bool
(
param
,
"enabled"
,
true
);
ao
->
really_enabled
=
false
;
...
...
src/output_internal.h
View file @
9cdbde4f
...
...
@@ -73,6 +73,13 @@ struct audio_output {
struct
mixer
*
mixer
;
/**
* Will this output receive tags from the decoder? The
* default is true, but it may be configured to false to
* suppress sending tags to the output.
*/
bool
tags
;
/**
* Shall this output always play something (i.e. silence),
* even when playback is stopped?
*/
...
...
src/output_thread.c
View file @
9cdbde4f
...
...
@@ -435,7 +435,7 @@ ao_play_chunk(struct audio_output *ao, const struct music_chunk *chunk)
assert
(
ao
!=
NULL
);
assert
(
ao
->
filter
!=
NULL
);
if
(
gcc_unlikely
(
chunk
->
tag
!=
NULL
))
{
if
(
ao
->
tags
&&
gcc_unlikely
(
chunk
->
tag
!=
NULL
))
{
g_mutex_unlock
(
ao
->
mutex
);
ao_plugin_send_tag
(
ao
,
chunk
->
tag
);
g_mutex_lock
(
ao
->
mutex
);
...
...
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