diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-31 12:15:04 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-31 12:15:04 +0200 |
commit | d528a3051f1f4f1fc9e24fb5442158b28341f750 (patch) | |
tree | 63a9f9a9a7a1e92d767e148bcf95eead6638d738 /plugins/mpgmad | |
parent | 15423d482c3db70356c9a8cfcf858eb00911efcd (diff) |
metadata writing infrastructure
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r-- | plugins/mpgmad/mpgmad.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c index 75d41644..c697bdf2 100644 --- a/plugins/mpgmad/mpgmad.c +++ b/plugins/mpgmad/mpgmad.c @@ -1166,6 +1166,19 @@ cmp3_insert (DB_playItem_t *after, const char *fname) { return after; } +int +cmp3_write_metadata (DB_playItem_t *it) { + // get options + int strip_id3v2 = deadbeef->conf_get_int ("mp3.strip_id3v2", 0); + int strip_id3v1 = deadbeef->conf_get_int ("mp3.strip_id3v2", 0); + int strip_apev2 = deadbeef->conf_get_int ("mp3.strip_apev2", 0); + int write_id3v2 = deadbeef->conf_get_int ("mp3.write_id3v2", 1); + int write_id3v1 = deadbeef->conf_get_int ("mp3.write_id3v1", 0); + int write_apev2 = deadbeef->conf_get_int ("mp3.write_apev2", 1); + int id3v2_version = deadbeef->conf_get_int ("mp3.id3v2_version", 3); + const char *id3v1_encoding = deadbeef->conf_get_str ("mp3.id3v1_encoding", "iso8859-1"); +} + static const char *exts[] = { "mp1", "mp2", "mp3", NULL }; @@ -1189,6 +1202,7 @@ static DB_decoder_t plugin = { .seek = cmp3_seek, .seek_sample = cmp3_seek_sample, .insert = cmp3_insert, + .write_metadata = cmp3_write_metadata, .exts = exts, .filetypes = filetypes }; |