EncoderPlugin: pass Tag reference to method tag()

This commit is contained in:
Max Kellermann
2014-12-26 22:30:54 +01:00
parent 58a5da33c2
commit af9092df39
6 changed files with 8 additions and 8 deletions

View File

@@ -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);

View File

@@ -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 */