mirror of
https://github.com/fmang/opustags.git
synced 2025-01-29 03:15:05 +01:00
delete add_tags, it had become too simple
This commit is contained in:
parent
cc5896b1a0
commit
0b4e01c3b0
10
src/opus.cc
10
src/opus.cc
@ -124,13 +124,3 @@ void ot::delete_tags(opus_tags *tags, const char *field)
|
||||
tags->comments.erase(current);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* \todo Return void.
|
||||
*/
|
||||
int ot::add_tags(opus_tags *tags, const char **tags_to_add, uint32_t count)
|
||||
{
|
||||
for (uint32_t i = 0; i < count; ++i)
|
||||
tags->comments.emplace_back(tags_to_add[i]);
|
||||
return 0;
|
||||
}
|
||||
|
@ -304,10 +304,12 @@ int main(int argc, char **argv){
|
||||
caught_eq = 1;
|
||||
field_len++;
|
||||
}
|
||||
ot::add_tags(&tags, (const char**) raw_comment, raw_count);
|
||||
for (size_t i = 0; i < raw_count; ++i)
|
||||
tags.comments.emplace_back(raw_comment[i]);
|
||||
}
|
||||
}
|
||||
ot::add_tags(&tags, to_add, count_add);
|
||||
for (size_t i = 0; i < count_add; ++i)
|
||||
tags.comments.emplace_back(to_add[i]);
|
||||
if(out){
|
||||
ogg_packet packet;
|
||||
ot::render_tags(&tags, &packet);
|
||||
|
@ -86,7 +86,6 @@ struct opus_tags {
|
||||
int parse_tags(const char *data, long len, opus_tags *tags);
|
||||
int render_tags(opus_tags *tags, ogg_packet *op);
|
||||
void delete_tags(opus_tags *tags, const char *field);
|
||||
int add_tags(opus_tags *tags, const char **tags_to_add, uint32_t count);
|
||||
|
||||
/** \} */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user