~jcowgill/ubuntu/trusty/easytag/bug-1295882

« back to all changes in this revision

Viewing changes to src/flac_tag.c

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2011-05-02 20:04:35 UTC
  • mfrom: (1.3.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110502200435-oxnbpvmsscs02oe2
Tags: 2.1.6+git20110423-1
* New maintainers. (Taking over from Sebastian Bacher per his agreement.)
* New upstream snapshot.
* Switch to the 3.0 (quilt) format.
* debian/copyright:
  - New upstream address.
* debian/control:
  - Update maintainer field.
  - Bump Standards-Version to 3.9.2.
  - Do not depend on cdbs, use debhelper version with override support.
  - Use dh-autoreconf to generate automake files.
  - Add Vcs-* fields.
  - Fix misspelling in package description.
  - Set DM-Upload-Allowed.
* debian/rules:
  - Rewrite using debhelper 7.
  - Link with -Wl,--as-needed.
  - Add get-orig-source rule to export git snapshots.
* debian/patches:
  - Remove 01-autoload.patch, merged upstream.
  - Remove 02-autoreconf.patch, using dh_autoreconf now.
  - Remove manpage-has-bad-whatis-entry.patch, merged upstream.
  - Add desktop.patch: desktop file fixes. (Closes: #620141, #360390)
* Update debian/watch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
886
886
        // Set the original vendor string, else will be use the version of library
887
887
        if (vce_field_vendor_string_found)
888
888
        {
889
 
            FLAC__metadata_object_vorbiscomment_set_vendor_string(vc_block, vce_field_vendor_string, true);
890
 
            g_free(vce_field_vendor_string.entry);
 
889
            // must set 'copy' param to false, because the API will reuse the  pointer of an empty
 
890
            // string (yet still return 'true', indicating it was copied); the string is free'd during
 
891
            // metadata_chain_delete routine
 
892
            FLAC__metadata_object_vorbiscomment_set_vendor_string(vc_block, vce_field_vendor_string, /*copy=*/false);
891
893
        }
892
894
 
893
895
 
1121
1123
    FLAC__metadata_chain_sort_padding(chain);
1122
1124
 
1123
1125
    // Write tag
1124
 
    if ( !FLAC__metadata_chain_write(chain, /*padding*/TRUE, /*preserve_file_stats*/TRUE) )
 
1126
    if ( !FLAC__metadata_chain_write(chain, /*padding*/TRUE, PRESERVE_MODIFICATION_TIME) )
1125
1127
    {
1126
1128
        // Error with "FLAC__metadata_chain_write"
1127
1129
        FLAC__Metadata_ChainStatus status = FLAC__metadata_chain_status(chain);