diff options
author | 2011-03-31 22:06:22 +0200 | |
---|---|---|
committer | 2011-03-31 22:06:22 +0200 | |
commit | 5c2f94c8bfa7b98b3c832d0ce11c6ecdbd474029 (patch) | |
tree | eb92ff856f530485809ee0e2e0710f56f8d0155b /plugins/tta/ttaplug.c | |
parent | 57de90e3b8958b4d5edf1bd0145f98623768caa9 (diff) |
thread-safe config access
Diffstat (limited to 'plugins/tta/ttaplug.c')
-rw-r--r-- | plugins/tta/ttaplug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tta/ttaplug.c b/plugins/tta/ttaplug.c index b83e805b..20a0c8a5 100644 --- a/plugins/tta/ttaplug.c +++ b/plugins/tta/ttaplug.c @@ -285,7 +285,8 @@ static int tta_write_metadata (DB_playItem_t *it) { } int id3v2_version = 4; - const char *id3v1_encoding = deadbeef->conf_get_str ("mp3.id3v1_encoding", "iso8859-1"); + char id3v1_encoding[50]; + deadbeef->conf_get_str ("mp3.id3v1_encoding", "iso8859-1", id3v1_encoding, sizeof (id3v1_encoding)); return deadbeef->junk_rewrite_tags (it, junk_flags, id3v2_version, id3v1_encoding); } |