summaryrefslogtreecommitdiff
path: root/src/encoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-26 22:30:54 +0100
committerMax Kellermann <max@duempel.org>2014-12-26 22:30:54 +0100
commitaf9092df3928ee770875a0b1acee1dc7b6347245 (patch)
tree5ca24d3a67479af975712b0e032a4a3c8e0a30dd /src/encoder
parent58a5da33c243c057ac4f70ffcfa179b9710161d2 (diff)
EncoderPlugin: pass Tag reference to method tag()
Diffstat (limited to 'src/encoder')
-rw-r--r--src/encoder/EncoderPlugin.hxx4
-rw-r--r--src/encoder/plugins/VorbisEncoderPlugin.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/encoder/EncoderPlugin.hxx b/src/encoder/EncoderPlugin.hxx
index 95e4e5838..8b0754f3f 100644
--- a/src/encoder/EncoderPlugin.hxx
+++ b/src/encoder/EncoderPlugin.hxx
@@ -65,7 +65,7 @@ struct EncoderPlugin {
bool (*pre_tag)(Encoder *encoder, Error &error);
- bool (*tag)(Encoder *encoder, const Tag *tag,
+ bool (*tag)(Encoder *encoder, const Tag &tag,
Error &error);
bool (*write)(Encoder *encoder,
@@ -240,7 +240,7 @@ encoder_pre_tag(Encoder *encoder, Error &error)
* @return true on success
*/
static inline bool
-encoder_tag(Encoder *encoder, const Tag *tag, Error &error)
+encoder_tag(Encoder *encoder, const Tag &tag, Error &error)
{
assert(encoder->open);
assert(!encoder->pre_tag);
diff --git a/src/encoder/plugins/VorbisEncoderPlugin.cxx b/src/encoder/plugins/VorbisEncoderPlugin.cxx
index 01c9910a0..253a7ce81 100644
--- a/src/encoder/plugins/VorbisEncoderPlugin.cxx
+++ b/src/encoder/plugins/VorbisEncoderPlugin.cxx
@@ -279,7 +279,7 @@ copy_tag_to_vorbis_comment(vorbis_comment *vc, const Tag &tag)
}
static bool
-vorbis_encoder_tag(Encoder *_encoder, const Tag *tag,
+vorbis_encoder_tag(Encoder *_encoder, const Tag &tag,
gcc_unused Error &error)
{
struct vorbis_encoder &encoder = *(struct vorbis_encoder *)_encoder;
@@ -288,7 +288,7 @@ vorbis_encoder_tag(Encoder *_encoder, const Tag *tag,
/* write the vorbis_comment object */
vorbis_comment_init(&comment);
- copy_tag_to_vorbis_comment(&comment, *tag);
+ copy_tag_to_vorbis_comment(&comment, tag);
/* reset ogg_stream_state and begin a new stream */