programs/common.c : Fix update_strings() copyright, comment, album and license are correctly written.

This commit is contained in:
Erik de Castro Lopo 2010-01-07 20:41:47 +11:00
parent 07611d9755
commit 793bc6b49b
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2010-01-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* programs/common.c
Fix update_strings() copyright, comment, album and license are correctly
written. Thanks to Todd Allen for reporting this.
2010-01-05 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* doc/api.html

View File

@ -180,22 +180,22 @@ update_strings (SNDFILE * outfile, const METADATA_INFO * info)
sf_set_string (outfile, SF_STR_TITLE, info->title) ;
if (info->copyright != NULL)
sf_set_string (outfile, SF_STR_TITLE, info->copyright) ;
sf_set_string (outfile, SF_STR_COPYRIGHT, info->copyright) ;
if (info->artist != NULL)
sf_set_string (outfile, SF_STR_ARTIST, info->artist) ;
if (info->comment != NULL)
sf_set_string (outfile, SF_STR_TITLE, info->comment) ;
sf_set_string (outfile, SF_STR_COMMENT, info->comment) ;
if (info->date != NULL)
sf_set_string (outfile, SF_STR_DATE, info->date) ;
if (info->album != NULL)
sf_set_string (outfile, SF_STR_TITLE, info->album) ;
sf_set_string (outfile, SF_STR_ALBUM, info->album) ;
if (info->license != NULL)
sf_set_string (outfile, SF_STR_TITLE, info->license) ;
sf_set_string (outfile, SF_STR_LICENSE, info->license) ;
} /* update_strings */