From: Scott Wheeler Date: Wed, 6 Feb 2008 18:04:40 +0000 (+0000) Subject: Make sure that we don't preserve the unsynchronization flag since we don't X-Git-Tag: v1.5~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4f7a9ec1e607108d8d6afcd8dca2b4180be6a82;p=taglib Make sure that we don't preserve the unsynchronization flag since we don't write unsynchronized data. BUG:157166 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@771680 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/taglib/mpeg/id3v2/id3v2frame.h b/taglib/mpeg/id3v2/id3v2frame.h index 83e512bc..e76d0608 100644 --- a/taglib/mpeg/id3v2/id3v2frame.h +++ b/taglib/mpeg/id3v2/id3v2frame.h @@ -381,7 +381,7 @@ namespace TagLib { #endif /*! - * Returns true if unsyncronisation is enabled for this frame. + * Returns true if unsynchronisation is enabled for this frame. */ bool unsynchronisation() const; diff --git a/taglib/mpeg/id3v2/id3v2header.cpp b/taglib/mpeg/id3v2/id3v2header.cpp index b08d5f4b..e14adcce 100644 --- a/taglib/mpeg/id3v2/id3v2header.cpp +++ b/taglib/mpeg/id3v2/id3v2header.cpp @@ -167,11 +167,12 @@ ByteVector Header::render() const v.append(char(4)); v.append(char(0)); - // Currently we don't actually support writing extended headers or footers, so - // make sure that the flags are set accordingly. + // Currently we don't actually support writing extended headers, footers or + // unsynchronized tags, make sure that the flags are set accordingly. d->extendedHeader = false; d->footerPresent = false; + d->unsynchronisation = false; // render and add the flags std::bitset<8> flags;