]> granicus.if.org Git - taglib/commitdiff
Make sure that we don't preserve the unsynchronization flag since we don't
authorScott Wheeler <wheeler@kde.org>
Wed, 6 Feb 2008 18:04:40 +0000 (18:04 +0000)
committerScott Wheeler <wheeler@kde.org>
Wed, 6 Feb 2008 18:04:40 +0000 (18:04 +0000)
write unsynchronized data.

BUG:157166

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@771680 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/mpeg/id3v2/id3v2frame.h
taglib/mpeg/id3v2/id3v2header.cpp

index 83e512bc09779fd45eb44a07db667a63803e2efb..e76d060820fb12e15f955363ad7c6ee64d2ec8bb 100644 (file)
@@ -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;
 
index b08d5f4b58afe814b0dd2f6fefb3328348c02253..e14adcce15b7c6acb1e3c89156e03d2b2bee6570 100644 (file)
@@ -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;