renders them unplayable with some players. Thanks to Jason Lee for tracking
this down!
CCMAIL:75880-done@bugs.kde.org
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@308437
283d02a7-25f6-0310-bc7c-
ecb5cbfe19da
Tag::duplicate(d->tag, d->comment, true);
}
- d->xiphCommentData = d->comment->render();
+ d->xiphCommentData = d->comment->render(false);
ByteVector v = ByteVector::fromUInt(d->xiphCommentData.size());
}
ByteVector Ogg::XiphComment::render() const
+{
+ return render(true);
+}
+
+ByteVector Ogg::XiphComment::render(bool addFramingBit) const
{
ByteVector data;
}
// Append the "framing bit".
-
- data.append(char(1));
+
+ if(addFramingBit)
+ data.append(char(1));
return data;
}
/*!
* Renders the comment to a ByteVector suitable for inserting into a file.
*/
- ByteVector render() const;
+ ByteVector render() const; // BIC: remove and merge with below
+
+ /*!
+ * Renders the comment to a ByteVector suitable for inserting into a file.
+ *
+ * If \a addFramingBit is true the standard Vorbis comment framing bit will
+ * be appended. However some formats (notably FLAC) do not work with this
+ * in place.
+ */
+ ByteVector render(bool addFramingBit) const;
protected:
/*!