<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-6542</id>
	<title>Nabble - taglib-devel</title>
	<updated>2009-12-06T16:01:00Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/taglib-devel-f6542.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/taglib-devel-f6542.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26673368</id>
	<title>small grammar fix for front page</title>
	<published>2009-12-06T16:01:00Z</published>
	<updated>2009-12-06T16:01:00Z</updated>
	<author>
		<name>Bugzilla from pmdumuid@gmail.com</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Here's a small grammar fix for front page:&lt;br&gt;
&lt;strong&gt;&lt;br&gt;
TagLib is extensible&lt;/strong&gt; - TagLib does not implement every feature
of ID3v2, but does instead mades it possible for application authors to
extend TagLib to support the specific features that they need in their
applications.&lt;br&gt;
&lt;br&gt;
replace &quot;mades&quot; with &quot;makes&quot;&lt;br&gt;
&lt;br&gt;
Cheer's,&lt;br&gt;
Pierre&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673368&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/small-grammar-fix-for-front-page-tp26673368p26673368.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663893</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-06T03:08:15Z</published>
	<updated>2009-12-06T03:08:15Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">I guess that&amp;#39;s the correct fix to the existing QStringToTString() function.&lt;br&gt;But FileRef cannot take a TString object as an argument. So, I cannot use that function itself. &lt;br&gt;&lt;br&gt;Instead, I&amp;#39;m using what is given in the function itself, i.e. s.toUtf8().data() which works perfectly as an argument to FileRef.&lt;br&gt;

&lt;br&gt;Thanks,&lt;br&gt;Plasty.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/6 Ιντζόγλου Θεόφιλος &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663893&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;int.teo@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

I can&amp;#39;t really remember where I got it from but I have the above lines in a&lt;br&gt;
header file:&lt;br&gt;
&lt;br&gt;
/*!&lt;br&gt;
 * \relates TagLib::String&lt;br&gt;
 *&lt;br&gt;
 * Converts a TagLib::String to a QString without a requirement to link to Qt.&lt;br&gt;
 */&lt;br&gt;
#define Q4StringToTString(s) TagLib::String(s.toUtf8().data(),&lt;br&gt;
TagLib::String::UTF8)&lt;br&gt;
&lt;br&gt;
So all you need to use is Q4StringToTString(). It works just fine here. Hope ti&lt;br&gt;
helps!&lt;br&gt;
&lt;br&gt;
Theofilos Intzoglou&lt;br&gt;
&lt;br&gt;
Στις Κυριακή 06 Δεκεμβρίου 2009 12:39:37 Plasty Grove γράψατε:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&amp;gt; You&amp;#39;re right about FileRef taking only const char *, and yes&lt;br&gt;
&amp;gt; QStringToTString doesn&amp;#39;t help. But in addition, the function doesn&amp;#39;t work.&lt;br&gt;
&amp;gt;  I don&amp;#39;t know if it&amp;#39;s with the new qt libraries (I&amp;#39;m using 4.5.2). I took a&lt;br&gt;
&amp;gt;  look at the macro definition for the function and it looks outdated. viz.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; #define QStringToTString(s) TagLib::String(s.utf8().data(),&lt;br&gt;
&amp;gt; TagLib::String::UTF8)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; QString no longer has a utf8() function.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; But there is one thing I took away from this function that seems to work in&lt;br&gt;
&amp;gt; addition to toAscii() and that&amp;#39;s toUtf8().data().&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For some reason toUtf8().constData() doesn&amp;#39;t work, but toUtf8().data()&lt;br&gt;
&amp;gt; works.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; i.e.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; TagLib::FileRef tagFile(qstr.toUtf8().data());&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Would this be a more preferable way to do it than toAscii()?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Plasty.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; PS: I also noticed that both Qt and taglib support utf16, but I tried it&lt;br&gt;
&amp;gt;  and it didn&amp;#39;t work and also I don&amp;#39;t know much about UTF.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2009/12/6 Lukáš Lalinský &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663893&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Sat, Dec 5, 2009 at 10:29 PM, Michael Pyne &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663893&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mpyne@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; On Saturday 05 December 2009 15:25:13 Plasty Grove wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; That makes sense, but even the following doesn&amp;#39;t work:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; QByteArray qbArray = qstr.toLocal8Bit();&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; const char* str = qbArray.constData();&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; TagLib::FileRef tagFile(str);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; In this case, I&amp;#39;ve got a local object which stores the value returned&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; by toLocal8Bit() and which is in scope when I&amp;#39;m using str. Does&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; qbArray get destroyed whenever constData() is called on it? When I&amp;#39;m&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; debugging, I&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; can&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; still see str holding a value when it goes to the next step.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Perhaps an encoding issue if you don&amp;#39;t use straight US-ASCII for your&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; file&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; names? In that case if &amp;quot;local8Bit&amp;quot; is not the encoding Taglib is&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; expecting&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; you&amp;#39;ll get weirdness.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; The KDE JuK music manager uses taglib and has TString/QString&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; conversion&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; code&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; (and I&amp;#39;m sure Amarok has the same thing) if you want to see how those&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; projects&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; do it.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; TagLib::String will not help in this case, because it also represents&lt;br&gt;
&amp;gt; &amp;gt; Unicode string, like QString. FileRef&amp;#39;s filename parameter on&lt;br&gt;
&amp;gt; &amp;gt; non-Windows platforms is char*, so you need the actual encoded bytes.&lt;br&gt;
&amp;gt; &amp;gt; In Qt you can use QFile::encodeName(string) to encode the filename the&lt;br&gt;
&amp;gt; &amp;gt; same way Qt does it for file dialogs or other places that interact&lt;br&gt;
&amp;gt; &amp;gt; with the filesystem. This can still fail in some cases (different&lt;br&gt;
&amp;gt; &amp;gt; mounted filesystems using different encodings), but it&amp;#39;s the best you&lt;br&gt;
&amp;gt; &amp;gt; can do if you store filenames as Unicode strings.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt; Lukas Lalinsky&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663893&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; &amp;gt; taglib-devel mailing list&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663893&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
taglib-devel mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663893&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663893&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26663893.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663763</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-06T02:50:43Z</published>
	<updated>2009-12-06T02:50:43Z</updated>
	<author>
		<name>Bugzilla from int.teo@gmail.com</name>
	</author>
	<content type="html">I can't really remember where I got it from but I have the above lines in a 
&lt;br&gt;header file:
&lt;br&gt;&lt;br&gt;/*!
&lt;br&gt;&amp;nbsp;* \relates TagLib::String
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;&amp;nbsp;* Converts a TagLib::String to a QString without a requirement to link to Qt.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;#define Q4StringToTString(s) TagLib::String(s.toUtf8().data(), 
&lt;br&gt;TagLib::String::UTF8)
&lt;br&gt;&lt;br&gt;So all you need to use is Q4StringToTString(). It works just fine here. Hope ti 
&lt;br&gt;helps!
&lt;br&gt;&lt;br&gt;Theofilos Intzoglou
&lt;br&gt;&lt;br&gt;Στις Κυριακή 06 Δεκεμβρίου 2009 12:39:37 Plasty Grove γράψατε:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You're right about FileRef taking only const char *, and yes
&lt;br&gt;&amp;gt; QStringToTString doesn't help. But in addition, the function doesn't work.
&lt;br&gt;&amp;gt; &amp;nbsp;I don't know if it's with the new qt libraries (I'm using 4.5.2). I took a
&lt;br&gt;&amp;gt; &amp;nbsp;look at the macro definition for the function and it looks outdated. viz.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #define QStringToTString(s) TagLib::String(s.utf8().data(),
&lt;br&gt;&amp;gt; TagLib::String::UTF8)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; QString no longer has a utf8() function.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But there is one thing I took away from this function that seems to work in
&lt;br&gt;&amp;gt; addition to toAscii() and that's toUtf8().data().
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For some reason toUtf8().constData() doesn't work, but toUtf8().data()
&lt;br&gt;&amp;gt; works.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; i.e.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; TagLib::FileRef tagFile(qstr.toUtf8().data());
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Would this be a more preferable way to do it than toAscii()?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Plasty.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; PS: I also noticed that both Qt and taglib support utf16, but I tried it
&lt;br&gt;&amp;gt; &amp;nbsp;and it didn't work and also I don't know much about UTF.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/12/6 Lukáš Lalinský &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663763&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On Sat, Dec 5, 2009 at 10:29 PM, Michael Pyne &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663763&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mpyne@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Saturday 05 December 2009 15:25:13 Plasty Grove wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; That makes sense, but even the following doesn't work:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; QByteArray qbArray = qstr.toLocal8Bit();
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; const char* str = qbArray.constData();
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; TagLib::FileRef tagFile(str);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; In this case, I've got a local object which stores the value returned
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; by toLocal8Bit() and which is in scope when I'm using str. Does
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; qbArray get destroyed whenever constData() is called on it? When I'm
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; debugging, I
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; can
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; still see str holding a value when it goes to the next step.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Perhaps an encoding issue if you don't use straight US-ASCII for your
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; file
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; names? In that case if &amp;quot;local8Bit&amp;quot; is not the encoding Taglib is
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; expecting
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; you'll get weirdness.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The KDE JuK music manager uses taglib and has TString/QString
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; conversion
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; code
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (and I'm sure Amarok has the same thing) if you want to see how those
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; projects
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; do it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; TagLib::String will not help in this case, because it also represents
&lt;br&gt;&amp;gt; &amp;gt; Unicode string, like QString. FileRef's filename parameter on
&lt;br&gt;&amp;gt; &amp;gt; non-Windows platforms is char*, so you need the actual encoded bytes.
&lt;br&gt;&amp;gt; &amp;gt; In Qt you can use QFile::encodeName(string) to encode the filename the
&lt;br&gt;&amp;gt; &amp;gt; same way Qt does it for file dialogs or other places that interact
&lt;br&gt;&amp;gt; &amp;gt; with the filesystem. This can still fail in some cases (different
&lt;br&gt;&amp;gt; &amp;gt; mounted filesystems using different encodings), but it's the best you
&lt;br&gt;&amp;gt; &amp;gt; can do if you store filenames as Unicode strings.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Lukas Lalinsky
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663763&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; taglib-devel mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663763&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663763&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26663763.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663694</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-06T02:39:37Z</published>
	<updated>2009-12-06T02:39:37Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">You&amp;#39;re right about FileRef taking only const char *, and yes QStringToTString doesn&amp;#39;t help. But in addition, the function doesn&amp;#39;t work. I don&amp;#39;t know if it&amp;#39;s with the new qt libraries (I&amp;#39;m using 4.5.2). I took a look at the macro definition for the function and it looks outdated. viz.&lt;br&gt;

&lt;br&gt;#define QStringToTString(s) TagLib::String(s.utf8().data(), TagLib::String::UTF8)&lt;br&gt;&lt;br&gt;QString no longer has a utf8() function.&lt;br&gt;&lt;br&gt;But there is one thing I took away from this function that seems to work in addition to toAscii() and that&amp;#39;s toUtf8().data().&lt;br&gt;

&lt;br&gt;For some reason toUtf8().constData() doesn&amp;#39;t work, but toUtf8().data() works.&lt;br&gt;&lt;br&gt;i.e.&lt;br&gt;&lt;br&gt;TagLib::FileRef tagFile(qstr.toUtf8().data());&lt;br&gt;&lt;br&gt;Would this be a more preferable way to do it than toAscii()?&lt;br&gt;

&lt;br&gt;Thanks,&lt;br&gt;Plasty.&lt;br&gt;&lt;br&gt;PS: I also noticed that both Qt and taglib support utf16, but I tried it and it didn&amp;#39;t work and also I don&amp;#39;t know much about UTF.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/6 Lukáš Lalinský &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663694&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Sat, Dec 5, 2009 at 10:29 PM, Michael Pyne &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663694&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mpyne@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;


&amp;gt; On Saturday 05 December 2009 15:25:13 Plasty Grove wrote:&lt;br&gt;
&amp;gt;&amp;gt; That makes sense, but even the following doesn&amp;#39;t work:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;&lt;br&gt;
&amp;gt;&amp;gt; QByteArray qbArray = qstr.toLocal8Bit();&lt;br&gt;
&amp;gt;&amp;gt; const char* str = qbArray.constData();&lt;br&gt;
&amp;gt;&amp;gt; TagLib::FileRef tagFile(str);&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; In this case, I&amp;#39;ve got a local object which stores the value returned by&lt;br&gt;
&amp;gt;&amp;gt; toLocal8Bit() and which is in scope when I&amp;#39;m using str. Does qbArray get&lt;br&gt;
&amp;gt;&amp;gt; destroyed whenever constData() is called on it? When I&amp;#39;m debugging, I can&lt;br&gt;
&amp;gt;&amp;gt; still see str holding a value when it goes to the next step.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Perhaps an encoding issue if you don&amp;#39;t use straight US-ASCII for your file&lt;br&gt;
&amp;gt; names? In that case if &amp;quot;local8Bit&amp;quot; is not the encoding Taglib is expecting&lt;br&gt;
&amp;gt; you&amp;#39;ll get weirdness.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The KDE JuK music manager uses taglib and has TString/QString conversion code&lt;br&gt;
&amp;gt; (and I&amp;#39;m sure Amarok has the same thing) if you want to see how those projects&lt;br&gt;
&amp;gt; do it.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;TagLib::String will not help in this case, because it also represents&lt;br&gt;
Unicode string, like QString. FileRef&amp;#39;s filename parameter on&lt;br&gt;
non-Windows platforms is char*, so you need the actual encoded bytes.&lt;br&gt;
In Qt you can use QFile::encodeName(string) to encode the filename the&lt;br&gt;
same way Qt does it for file dialogs or other places that interact&lt;br&gt;
with the filesystem. This can still fail in some cases (different&lt;br&gt;
mounted filesystems using different encodings), but it&amp;#39;s the best you&lt;br&gt;
can do if you store filenames as Unicode strings.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
Lukas Lalinsky&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663694&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;_______________________________________________&lt;br&gt;
taglib-devel mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663694&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663694&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26663694.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662989</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-06T00:12:43Z</published>
	<updated>2009-12-06T00:12:43Z</updated>
	<author>
		<name>Bugzilla from lalinsky@gmail.com</name>
	</author>
	<content type="html">On Sat, Dec 5, 2009 at 10:29 PM, Michael Pyne &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662989&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mpyne@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Saturday 05 December 2009 15:25:13 Plasty Grove wrote:
&lt;br&gt;&amp;gt;&amp;gt; That makes sense, but even the following doesn't work:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;
&lt;br&gt;&amp;gt;&amp;gt; QByteArray qbArray = qstr.toLocal8Bit();
&lt;br&gt;&amp;gt;&amp;gt; const char* str = qbArray.constData();
&lt;br&gt;&amp;gt;&amp;gt; TagLib::FileRef tagFile(str);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In this case, I've got a local object which stores the value returned by
&lt;br&gt;&amp;gt;&amp;gt; toLocal8Bit() and which is in scope when I'm using str. Does qbArray get
&lt;br&gt;&amp;gt;&amp;gt; destroyed whenever constData() is called on it? When I'm debugging, I can
&lt;br&gt;&amp;gt;&amp;gt; still see str holding a value when it goes to the next step.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Perhaps an encoding issue if you don't use straight US-ASCII for your file
&lt;br&gt;&amp;gt; names? In that case if &amp;quot;local8Bit&amp;quot; is not the encoding Taglib is expecting
&lt;br&gt;&amp;gt; you'll get weirdness.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The KDE JuK music manager uses taglib and has TString/QString conversion code
&lt;br&gt;&amp;gt; (and I'm sure Amarok has the same thing) if you want to see how those projects
&lt;br&gt;&amp;gt; do it.
&lt;/div&gt;&lt;br&gt;TagLib::String will not help in this case, because it also represents
&lt;br&gt;Unicode string, like QString. FileRef's filename parameter on
&lt;br&gt;non-Windows platforms is char*, so you need the actual encoded bytes.
&lt;br&gt;In Qt you can use QFile::encodeName(string) to encode the filename the
&lt;br&gt;same way Qt does it for file dialogs or other places that interact
&lt;br&gt;with the filesystem. This can still fail in some cases (different
&lt;br&gt;mounted filesystems using different encodings), but it's the best you
&lt;br&gt;can do if you store filenames as Unicode strings.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Lukas Lalinsky
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662989&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662989&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26662989.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662835</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-05T23:30:27Z</published>
	<updated>2009-12-05T23:30:27Z</updated>
	<author>
		<name>Michael Pyne</name>
	</author>
	<content type="html">On Saturday 05 December 2009 23:56:58 Plasty Grove wrote:
&lt;br&gt;&amp;gt; Thanks so much Michael. That's exactly what was needed, straight ASCII
&lt;br&gt;&amp;gt; conversion.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is what works:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;
&lt;br&gt;&amp;gt; TagLib::FileRef tagFile(qstr.toAscii());
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Apologies, I didn't take note of the toAscii() function.
&lt;br&gt;&lt;br&gt;Please keep in mind that this is still broken in like 92% of the world or so. 
&lt;br&gt;You will in general need to use /some/ encoding, you just need to make sure 
&lt;br&gt;TagLib is using the same one.
&lt;br&gt;&lt;br&gt;I'd recommend UTF8 as it's supported by both TagLib and Qt.
&lt;br&gt;&lt;br&gt;Indeed, I finally took a look at the TagLib String API reference 
&lt;br&gt;(&lt;a href=&quot;http://developer.kde.org/~wheeler/taglib/api/classTagLib_1_1String.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.kde.org/~wheeler/taglib/api/classTagLib_1_1String.html&lt;/a&gt;) and 
&lt;br&gt;noted that the function you want is already defined:
&lt;br&gt;&lt;br&gt;QStringToTString(s) (in the Related Functions section).
&lt;br&gt;&lt;br&gt;So don't reinvent the wheel, just use QStringToTString
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp;- Michael Pyne
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662835&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (853 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26662835/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26662835.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662303</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-05T20:56:58Z</published>
	<updated>2009-12-05T20:56:58Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">Thanks so much Michael. That&amp;#39;s exactly what was needed, straight ASCII conversion.&lt;br&gt;&lt;br&gt;This is what works:&lt;br&gt;&lt;br&gt;QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;&lt;br&gt;TagLib::FileRef tagFile(qstr.toAscii());&lt;br&gt;

&lt;br&gt;Apologies, I didn&amp;#39;t take note of the toAscii() function.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Abhiram.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Dec 6, 2009 at 2:59 AM, Michael Pyne &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662303&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mpyne@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;div class=&quot;im&quot;&gt;On Saturday 05 December 2009 15:25:13 Plasty Grove wrote:&lt;br&gt;
&amp;gt; That makes sense, but even the following doesn&amp;#39;t work:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;&lt;br&gt;
&amp;gt; QByteArray qbArray = qstr.toLocal8Bit();&lt;br&gt;
&amp;gt; const char* str = qbArray.constData();&lt;br&gt;
&amp;gt; TagLib::FileRef tagFile(str);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In this case, I&amp;#39;ve got a local object which stores the value returned by&lt;br&gt;
&amp;gt; toLocal8Bit() and which is in scope when I&amp;#39;m using str. Does qbArray get&lt;br&gt;
&amp;gt; destroyed whenever constData() is called on it? When I&amp;#39;m debugging, I can&lt;br&gt;
&amp;gt; still see str holding a value when it goes to the next step.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Perhaps an encoding issue if you don&amp;#39;t use straight US-ASCII for your file&lt;br&gt;
names? In that case if &amp;quot;local8Bit&amp;quot; is not the encoding Taglib is expecting&lt;br&gt;
you&amp;#39;ll get weirdness.&lt;br&gt;
&lt;br&gt;
The KDE JuK music manager uses taglib and has TString/QString conversion code&lt;br&gt;
(and I&amp;#39;m sure Amarok has the same thing) if you want to see how those projects&lt;br&gt;
do it.&lt;br&gt;
&lt;br&gt;
If it&amp;#39;s not encoding I&amp;#39;m not sure what to try other than stepping through&lt;br&gt;
FileRef in the debugger to see where the logic goes astray.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt; - Michael Pyne&lt;br&gt;
&lt;/font&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
taglib-devel mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662303&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662303&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26662303.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26659552</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-05T13:29:08Z</published>
	<updated>2009-12-05T13:29:08Z</updated>
	<author>
		<name>Michael Pyne</name>
	</author>
	<content type="html">On Saturday 05 December 2009 15:25:13 Plasty Grove wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; That makes sense, but even the following doesn't work:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;
&lt;br&gt;&amp;gt; QByteArray qbArray = qstr.toLocal8Bit();
&lt;br&gt;&amp;gt; const char* str = qbArray.constData();
&lt;br&gt;&amp;gt; TagLib::FileRef tagFile(str);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In this case, I've got a local object which stores the value returned by
&lt;br&gt;&amp;gt; toLocal8Bit() and which is in scope when I'm using str. Does qbArray get
&lt;br&gt;&amp;gt; destroyed whenever constData() is called on it? When I'm debugging, I can
&lt;br&gt;&amp;gt; still see str holding a value when it goes to the next step.
&lt;/div&gt;&lt;/div&gt;Perhaps an encoding issue if you don't use straight US-ASCII for your file 
&lt;br&gt;names? In that case if &amp;quot;local8Bit&amp;quot; is not the encoding Taglib is expecting 
&lt;br&gt;you'll get weirdness.
&lt;br&gt;&lt;br&gt;The KDE JuK music manager uses taglib and has TString/QString conversion code 
&lt;br&gt;(and I'm sure Amarok has the same thing) if you want to see how those projects 
&lt;br&gt;do it.
&lt;br&gt;&lt;br&gt;If it's not encoding I'm not sure what to try other than stepping through 
&lt;br&gt;FileRef in the debugger to see where the logic goes astray.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp;- Michael Pyne
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26659552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (853 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26659552/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26659552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26658966</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-05T12:25:13Z</published>
	<updated>2009-12-05T12:25:13Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">That makes sense, but even the following doesn&amp;#39;t work:&lt;br&gt;&lt;br&gt;QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;&lt;br&gt;QByteArray qbArray = qstr.toLocal8Bit();&lt;br&gt;const char* str = qbArray.constData();&lt;br&gt;&lt;div&gt;
TagLib::FileRef tagFile(str);&lt;br&gt;&lt;br&gt;In this case, I&amp;#39;ve got a local object which stores the value returned by toLocal8Bit() and which is in scope when I&amp;#39;m using str. Does qbArray get destroyed whenever constData() is called on it? When I&amp;#39;m debugging, I can still see str holding a value when it goes to the next step.&lt;br&gt;


&lt;br&gt;Thanks,&lt;br&gt;Plasty.&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Dec 6, 2009 at 1:18 AM, Michael Pyne &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26658966&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mpyne@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;


&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;On Saturday 05 December 2009 13:59:35 Plasty Grove wrote:&lt;br&gt;

&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I&amp;#39;m developing using qt and have a situation where I have to create a&lt;br&gt;
&amp;gt; FileRef object from a QString object.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --------------------------------------------------&lt;br&gt;
&amp;gt; TagLib::FileRef tagFile(&amp;quot;/home/mydir/music/song.mp3&amp;quot;) //---&amp;gt; Works fine&lt;br&gt;
&amp;gt; --------------------------------------------------&lt;br&gt;
&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;&lt;br&gt;
&amp;gt; const char* str = qstr.toLocal8Bit().constData();&lt;br&gt;
&amp;gt; TagLib::FileRef tagFile(str); //---&amp;gt; Doesn&amp;#39;t work, shows as empty in&lt;br&gt;
&amp;gt; debugger and segfaults when I try to access&lt;br&gt;
&amp;gt; --------------------------------------------------&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; What am I doing wrong here?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;QString::toLocal8Bit returns a QByteArray, not a const char *.&lt;br&gt;
That QByteArray is destructed once .constData() returns (since there&amp;#39;s no&lt;br&gt;
reason for C++ to keep it around).&lt;br&gt;
&lt;br&gt;
So now your const char * pointer is dangling in the middle of freed memory,&lt;br&gt;
and you get a crash.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt; - Michael Pyne&lt;br&gt;
&lt;/font&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
taglib-devel mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26658966&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26658966&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26658966.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26658617</id>
	<title>Re: Creating FileRef object from QString</title>
	<published>2009-12-05T11:48:05Z</published>
	<updated>2009-12-05T11:48:05Z</updated>
	<author>
		<name>Michael Pyne</name>
	</author>
	<content type="html">On Saturday 05 December 2009 13:59:35 Plasty Grove wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm developing using qt and have a situation where I have to create a
&lt;br&gt;&amp;gt; FileRef object from a QString object.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; TagLib::FileRef tagFile(&amp;quot;/home/mydir/music/song.mp3&amp;quot;) //---&amp;gt; Works fine
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;
&lt;br&gt;&amp;gt; const char* str = qstr.toLocal8Bit().constData();
&lt;br&gt;&amp;gt; TagLib::FileRef tagFile(str); //---&amp;gt; Doesn't work, shows as empty in
&lt;br&gt;&amp;gt; debugger and segfaults when I try to access
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What am I doing wrong here?
&lt;/div&gt;&lt;/div&gt;QString::toLocal8Bit returns a QByteArray, not a const char *.
&lt;br&gt;That QByteArray is destructed once .constData() returns (since there's no 
&lt;br&gt;reason for C++ to keep it around).
&lt;br&gt;&lt;br&gt;So now your const char * pointer is dangling in the middle of freed memory, 
&lt;br&gt;and you get a crash.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&amp;nbsp;- Michael Pyne
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26658617&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (853 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26658617/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26658617.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26658277</id>
	<title>Creating FileRef object from QString</title>
	<published>2009-12-05T10:59:35Z</published>
	<updated>2009-12-05T10:59:35Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I&amp;#39;m developing using qt and have a situation where I have to create a FileRef object from a QString object.&lt;br&gt;&lt;br&gt;--------------------------------------------------&lt;br&gt;TagLib::FileRef tagFile(&amp;quot;/home/mydir/music/song.mp3&amp;quot;) //---&amp;gt; Works fine&lt;br&gt;

--------------------------------------------------&lt;br&gt;QString qstr = &amp;quot;/home/mydir/music/song.mp3&amp;quot;;&lt;br&gt;const char* str = qstr.toLocal8Bit().constData();&lt;br&gt;TagLib::FileRef tagFile(str); //---&amp;gt; Doesn&amp;#39;t work, shows as empty in debugger and segfaults when I try to access&lt;br&gt;

--------------------------------------------------&lt;br&gt;&lt;br&gt;What am I doing wrong here?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Plasty.&lt;br&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26658277&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-FileRef-object-from-QString-tp26658277p26658277.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26639499</id>
	<title>about taglib 1.6.1</title>
	<published>2009-12-03T18:47:29Z</published>
	<updated>2009-12-03T18:47:29Z</updated>
	<author>
		<name>許耀仁</name>
	</author>
	<content type="html">hi!
&lt;br&gt;&lt;br&gt;there an error when I install the /usr/port/audio/taglib after I update
&lt;br&gt;the ports tree.
&lt;br&gt;&lt;br&gt;===&amp;gt; Checking if audio/taglib already installed
&lt;br&gt;cd: can't cd to /usr/ports/audio/taglib/work/taglib-1.6.1
&lt;br&gt;*** Error code 2
&lt;br&gt;&lt;br&gt;there's the dirs &amp;files under /usr/port/audio/taglib/work/
&lt;br&gt;&lt;br&gt;. .build_done.taglib._usr_local
&lt;br&gt;.. .PLIST.mktmp
&lt;br&gt;taglib-1.5 .PLIST.flattened
&lt;br&gt;.extract_done.taglib._usr_local .PLIST.setuid
&lt;br&gt;.patch_done.taglib._usr_local .PLIST.writable
&lt;br&gt;.configure_done.taglib._usr_local .PLIST.objdump
&lt;br&gt;&lt;br&gt;How to solve it?
&lt;br&gt;&lt;br&gt;Thank you so much &amp;nbsp;:-) 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26639499&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/about-taglib-1.6.1-tp26639499p26639499.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26611028</id>
	<title>Re: Extracting embedded picture from FLAC file</title>
	<published>2009-12-02T07:43:07Z</published>
	<updated>2009-12-02T07:43:07Z</updated>
	<author>
		<name>Tim De Baets</name>
	</author>
	<content type="html">I'm interested in this feature too, is there any news on this? I checked 
&lt;br&gt;the recent commits but didn't find anything related.
&lt;br&gt;&lt;br&gt;Maybe I should create a feature request in the bug tracker?
&lt;br&gt;&lt;br&gt;Tim De Baets
&lt;br&gt;&lt;br&gt;Peter van Hardenberg wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; We have that implemented here with a patch I'd like to upstream.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I suspect it needs a little bit of tweaking to match upstream style. I'll talk to my coworker who wrote that patch and try to get it posted tomorrow.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -pvh
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- &amp;quot;Atti&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26611028&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;atti86@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hey,
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to read the picture block from a .flac file using TagLib,
&lt;br&gt;&amp;gt;&amp;gt; but so far no luck. I've read the FLAC format specs, but I don't know
&lt;br&gt;&amp;gt;&amp;gt; how to access it via TagLib. Is it possible?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Atti.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; taglib-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26611028&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; taglib-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26611028&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26611028&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Extracting-embedded-picture-from-FLAC-file-tp26257865p26611028.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26609765</id>
	<title>Strange File</title>
	<published>2009-12-02T06:26:54Z</published>
	<updated>2009-12-02T06:26:54Z</updated>
	<author>
		<name>Manfred Schwind</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;when I try to open the following file
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://feeds.feedburner.com/~r/PasteCultureClub/~5/171770886/6.12.07-Paste_Culture_Club.m4a&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://feeds.feedburner.com/~r/PasteCultureClub/~5/171770886/6.12.07-Paste_Culture_Club.m4a&lt;/a&gt;&lt;br&gt;&lt;br&gt;with MP4Read() I just get back MP4_INVALID_FILE_HANDLE (the file is locally downloaded first, of course).
&lt;br&gt;There's really something strange going on with that file, because the (Mac OS X) Finder just crashes when trying to show the preview for this file.
&lt;br&gt;But iTunes and QuickTime Player do not seem to have any problems with this file, they play it fine and display the tag information.
&lt;br&gt;&lt;br&gt;Maybe there can be found a workaround to handle this type of &amp;quot;suspicious&amp;quot; file in taglib?
&lt;br&gt;&lt;br&gt;(This file is Episode &amp;quot;June 12, 2007&amp;quot; from the Paste Culture Club Podcast available on &lt;a href=&quot;http://www.pastecultureclub.com/podcasts/m4a/PMCCm4a.xml&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pastecultureclub.com/podcasts/m4a/PMCCm4a.xml&lt;/a&gt;. Other episodes from this podcast seem to work fine.)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Mani
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609765&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Strange-File-tp26609765p26609765.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566668</id>
	<title>Re: Changing MP4::Tag ItemListMap</title>
	<published>2009-11-29T13:58:16Z</published>
	<updated>2009-11-29T13:58:16Z</updated>
	<author>
		<name>Bugzilla from lalinsky@gmail.com</name>
	</author>
	<content type="html">2009/11/28 Новичков А.А. &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566668&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;novichko@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Take a look at the MP4::Tag source code. The usual way is something &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; like:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;aART&amp;quot;] = TagLib::StringList(&amp;quot;Album artist&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;\251wrt&amp;quot;] = TagLib::StringList(&amp;quot;Composer&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Or, if you want to write a new free-form tag:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;----:com.apple.iTunes:foo&amp;quot;] =
&lt;br&gt;&amp;gt;&amp;gt; TagLib::StringList(&amp;quot;Some custom tag&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I tried
&lt;br&gt;&amp;gt; map.insert(&amp;quot;some key&amp;quot;,TagLib::MP4::Item(TagLib::StringList(&amp;quot;value&amp;quot;)));
&lt;br&gt;&amp;gt; but nothing happened.
&lt;/div&gt;&lt;br&gt;What specifically is &amp;quot;some key&amp;quot;. Is it a valid MP4 atom name?
&lt;br&gt;&lt;br&gt;&amp;gt; Is it possible to modify MP4::Tag itemListMap taken by reference?
&lt;br&gt;&lt;br&gt;I don't see why not.
&lt;br&gt;&lt;br&gt;&amp;gt; And what does  the save() method in the MP4::Tag public methods do?
&lt;br&gt;&lt;br&gt;Saves tags to the file.
&lt;br&gt;&lt;br&gt;&amp;gt; Another problem: when trying to save tags in MP4 file with TagLib extras v.0.1.? (in Ubuntu Jaunty)
&lt;br&gt;&amp;gt; my program crashes with segfault even if I do just
&lt;br&gt;&amp;gt; TagLib::MP4::File *f=new TagLib::MP4::File(filename);
&lt;br&gt;&amp;gt; f-&amp;gt;save();
&lt;br&gt;&lt;br&gt;Can you try with plain TagLib? To debug the issue, it's necessary to
&lt;br&gt;see the backtrace.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Lukas Lalinsky
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566668&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566668&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-MP4%3A%3ATag-ItemListMap-tp26544366p26566668.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26565469</id>
	<title>aac/m4a chapter markers</title>
	<published>2009-11-29T12:01:41Z</published>
	<updated>2009-11-29T12:01:41Z</updated>
	<author>
		<name>Bugzilla from frank@meerkoetter.org</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;i would like to extract the chapter markers from an m4a file. Is this supported 
&lt;br&gt;by taglib?
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;KR,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Frank
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26565469&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/aac-m4a-chapter-markers-tp26565469p26565469.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26553222</id>
	<title>Re: taglib with qt-creator</title>
	<published>2009-11-28T05:39:37Z</published>
	<updated>2009-11-28T05:39:37Z</updated>
	<author>
		<name>Scott Wheeler</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 28, 2009, at 1:57 PM, Plasty Grove wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; How does this work? Is it similar for other external libraries that &amp;nbsp;
&lt;br&gt;&amp;gt; I'd like to include as well?
&lt;br&gt;&lt;br&gt;It reads the pkgconfig file that's installed along with the library. &amp;nbsp; 
&lt;br&gt;Most libraries these days install one in /usr/{local/}lib/pkgconfig/
&lt;br&gt;&lt;br&gt;-Scott
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26553222&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/taglib-with-qt-creator-tp26533614p26553222.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26552918</id>
	<title>Re: taglib with qt-creator</title>
	<published>2009-11-28T04:57:07Z</published>
	<updated>2009-11-28T04:57:07Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">Very cool. It inserted the include lines in the Makefile by itself. How does this work? Is it similar for other external libraries that I&amp;#39;d like to include as well?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Plasty&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Sat, Nov 28, 2009 at 6:09 PM, Scott Wheeler &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26552918&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wheeler@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;On Nov 28, 2009, at 8:15 AM, Plasty Grove wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In qt-creator, these values can be set by editing the .pro file of&lt;br&gt;
&amp;gt; your project and adding in the following variables:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; QMAKE_CXXFLAGS += -I /usr/include/taglib -I /usr/include/taglib-extras&lt;br&gt;
&amp;gt; QMAKE_LIBS += -ltag&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;I hadn&amp;#39;t really messed with Qt Creator, so I didn&amp;#39;t know how it was&lt;br&gt;
set up -- but actually if it just uses .pro files it&amp;#39;s even easier:&lt;br&gt;
&lt;br&gt;
CONFIG += link_pkgconfig&lt;br&gt;
PKGCONFIG += taglib taglib-extras&lt;br&gt;
&lt;br&gt;
-Scott&lt;br&gt;
_______________________________________________&lt;br&gt;
taglib-devel mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26552918&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26552918&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/taglib-with-qt-creator-tp26533614p26552918.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26552792</id>
	<title>Re: taglib with qt-creator</title>
	<published>2009-11-28T04:39:14Z</published>
	<updated>2009-11-28T04:39:14Z</updated>
	<author>
		<name>Scott Wheeler</name>
	</author>
	<content type="html">On Nov 28, 2009, at 8:15 AM, Plasty Grove wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In qt-creator, these values can be set by editing the .pro file of &amp;nbsp;
&lt;br&gt;&amp;gt; your project and adding in the following variables:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; QMAKE_CXXFLAGS += -I /usr/include/taglib -I /usr/include/taglib-extras
&lt;br&gt;&amp;gt; QMAKE_LIBS += -ltag
&lt;br&gt;&lt;br&gt;I hadn't really messed with Qt Creator, so I didn't know how it was &amp;nbsp;
&lt;br&gt;set up -- but actually if it just uses .pro files it's even easier:
&lt;br&gt;&lt;br&gt;CONFIG += link_pkgconfig
&lt;br&gt;PKGCONFIG += taglib taglib-extras
&lt;br&gt;&lt;br&gt;-Scott
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26552792&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/taglib-with-qt-creator-tp26533614p26552792.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26550971</id>
	<title>Re: taglib with qt-creator</title>
	<published>2009-11-27T23:15:33Z</published>
	<updated>2009-11-27T23:15:33Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">Ok, I seem to have got this figured out. We need to include the location of the header files in the compiler options. Effectively we need to have something like &lt;br&gt;&lt;br&gt;g++ something something -I /usr/include/taglib yada yada.&lt;br&gt;
&lt;br&gt;i.e. in the Makefile. We also need to have -ltag included as a link.&lt;br&gt;&lt;br&gt;Effectively, in the Makefile, this is what it translates to:&lt;br&gt;&lt;br&gt;CXXFLAGS      = -pipe -I /usr/include/taglib -I /usr/include/taglib-extras -g -D_REENTRANT -Wall -W $(DEFINES)&lt;br&gt;
LIBS          = $(SUBLIBS)  -L/usr/lib -ltag -lQtGui -lQtCore -lpthread&lt;br&gt;&lt;br&gt;(note the -ltag in the LIBS variable, taglib-extras in CXXFLAGS might not be required)&lt;br&gt;&lt;br&gt;and if you compile it now with make, you&amp;#39;ll find everything compiling fine.&lt;br&gt;
&lt;br&gt;In qt-creator, these values can be set by editing the .pro file of your project and adding in the following variables:&lt;br&gt;&lt;br&gt;QMAKE_CXXFLAGS += -I /usr/include/taglib -I /usr/include/taglib-extras&lt;br&gt;QMAKE_LIBS += -ltag&lt;br&gt;
&lt;br&gt;This will make the necessary modifications to the Makefile when you build the project.&lt;br&gt;&lt;br&gt;I hope someone finds this useful. It took me a day of googling, searching on ubuntu forums and a helpful dev at #qt-creator on freenode to figure this out.&lt;br&gt;
&lt;br&gt;Cheers!&lt;br&gt;Plasty&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 27, 2009 at 12:22 AM, Plasty Grove &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550971&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;plasty.grove@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Hi all,&lt;br&gt;&lt;br&gt;I&amp;#39;m unable to figure out how to set the taglib include
directory with my project in qt-creator. I&amp;#39;ve tried setting the
CXXFLAGS option to -I /usr/include/taglib and also tried CFLAGS under
the build config. But it&amp;#39;s just refusing to build. Can someone please
help me out with this?&lt;br&gt;
&lt;br&gt;Thanks!&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Plasty&lt;/font&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550971&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/taglib-with-qt-creator-tp26533614p26550971.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26550937</id>
	<title>Changing MP4::Tag ItemListMap</title>
	<published>2009-11-27T23:04:24Z</published>
	<updated>2009-11-27T23:04:24Z</updated>
	<author>
		<name>&quot;Новичков А. А.&quot;</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Take a look at the MP4::Tag source code. The usual way is something &amp;gt;
&lt;br&gt;&amp;gt; like:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;aART&amp;quot;] = TagLib::StringList(&amp;quot;Album artist&amp;quot;);
&lt;br&gt;&amp;gt; file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;\251wrt&amp;quot;] = TagLib::StringList(&amp;quot;Composer&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Or, if you want to write a new free-form tag:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;----:com.apple.iTunes:foo&amp;quot;] =
&lt;br&gt;&amp;gt; TagLib::StringList(&amp;quot;Some custom tag&amp;quot;);
&lt;/div&gt;&lt;br&gt;I tried 
&lt;br&gt;map.insert(&amp;quot;some key&amp;quot;,TagLib::MP4::Item(TagLib::StringList(&amp;quot;value&amp;quot;)));
&lt;br&gt;but nothing happened. 
&lt;br&gt;&lt;br&gt;Is it possible to modify MP4::Tag itemListMap taken by reference?
&lt;br&gt;And what does &amp;nbsp;the save() method in the MP4::Tag public methods do?
&lt;br&gt;&lt;br&gt;Another problem: when trying to save tags in MP4 file with TagLib extras v.0.1.? (in Ubuntu Jaunty) 
&lt;br&gt;my program crashes with segfault even if I do just
&lt;br&gt;TagLib::MP4::File *f=new TagLib::MP4::File(filename);
&lt;br&gt;f-&amp;gt;save();
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550937&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-MP4%3A%3ATag-ItemListMap-tp26544366p26550937.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545089</id>
	<title>Re: Changing MP4::Tag ItemListMap</title>
	<published>2009-11-27T08:57:34Z</published>
	<updated>2009-11-27T08:57:34Z</updated>
	<author>
		<name>Bugzilla from lalinsky@gmail.com</name>
	</author>
	<content type="html">2009/11/27 Новичков А.А. &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545089&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;novichko@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Hi, I have a question. How can I write some non-standard tag into mp4
&lt;br&gt;&amp;gt; file? The class MP4::Tag doesn't have any methods for it.
&lt;br&gt;&lt;br&gt;Take a look at the MP4::Tag source code. The usual way is something like:
&lt;br&gt;&lt;br&gt;file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;aART&amp;quot;] = TagLib::StringList(&amp;quot;Album artist&amp;quot;);
&lt;br&gt;file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;\251wrt&amp;quot;] = TagLib::StringList(&amp;quot;Composer&amp;quot;);
&lt;br&gt;&lt;br&gt;Or, if you want to write a new free-form tag:
&lt;br&gt;&lt;br&gt;file-&amp;gt;tag()-&amp;gt;itemListMap()[&amp;quot;----:com.apple.iTunes:foo&amp;quot;] =
&lt;br&gt;TagLib::StringList(&amp;quot;Some custom tag&amp;quot;);
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Lukas Lalinsky
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545089&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalinsky@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545089&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-MP4%3A%3ATag-ItemListMap-tp26544366p26545089.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544366</id>
	<title>Changing MP4::Tag ItemListMap</title>
	<published>2009-11-27T08:03:47Z</published>
	<updated>2009-11-27T08:03:47Z</updated>
	<author>
		<name>&quot;Новичков А. А.&quot;</name>
	</author>
	<content type="html">Hi, I have a question. How can I write some non-standard tag into mp4
&lt;br&gt;file? The class MP4::Tag doesn't have any methods for it.
&lt;br&gt;&lt;br&gt;Alex
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544366&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-MP4%3A%3ATag-ItemListMap-tp26544366p26544366.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533614</id>
	<title>taglib with qt-creator</title>
	<published>2009-11-26T10:52:35Z</published>
	<updated>2009-11-26T10:52:35Z</updated>
	<author>
		<name>Plasty Grove</name>
	</author>
	<content type="html">Hi all,&lt;br&gt;&lt;br&gt;I&amp;#39;m unable to figure out how to set the taglib include
directory with my project in qt-creator. I&amp;#39;ve tried setting the
CXXFLAGS option to -I /usr/include/taglib and also tried CFLAGS under
the build config. But it&amp;#39;s just refusing to build. Can someone please
help me out with this?&lt;br&gt;
&lt;br&gt;Thanks!&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Plasty&lt;/font&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533614&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/taglib-with-qt-creator-tp26533614p26533614.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526536</id>
	<title>Re: Album Art using Taglib</title>
	<published>2009-11-26T01:17:31Z</published>
	<updated>2009-11-26T01:17:31Z</updated>
	<author>
		<name>Scott Wheeler</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 26, 2009, at 6:59 AM, pranay prateek wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi all
&lt;br&gt;&amp;gt; I am trying to use TagLib to extract album art from audio files. I &amp;nbsp;
&lt;br&gt;&amp;gt; am building this app for WINCE 6.0 using c++ and Visual Studio 2005 &amp;nbsp;
&lt;br&gt;&amp;gt; IDE. [...]
&lt;br&gt;&lt;br&gt;I just ran your code on a couple hundred files and it worked fine. &amp;nbsp; 
&lt;br&gt;&amp;nbsp;From what I can tell there are one of two possibilities:
&lt;br&gt;&lt;br&gt;- This is a misconfiguration in your compiler / tool-chain, which you &amp;nbsp;
&lt;br&gt;probably won't get much help with here since the overwhelming majority &amp;nbsp;
&lt;br&gt;of the people on this list work on Linux or Mac.
&lt;br&gt;&lt;br&gt;- You've run into some files which are triggering taglib bugs. &amp;nbsp;If &amp;nbsp;
&lt;br&gt;you've got one file that always crashes taglib, feel free to send it &amp;nbsp;
&lt;br&gt;to me privately and I'll see if I can reproduce the issue.
&lt;br&gt;&lt;br&gt;-Scott
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526536&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Album-Art-using-Taglib-tp26524706p26526536.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524788</id>
	<title>Re: Album Art using Taglib</title>
	<published>2009-11-25T22:15:33Z</published>
	<updated>2009-11-25T22:15:33Z</updated>
	<author>
		<name>pranay prateek</name>
	</author>
	<content type="html">&lt;br&gt;In continuation to the previous mail,&lt;div&gt;i forgot to mention that my code crashes in the first line itself, &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;TagLib::MPEG::File mpegFile(&amp;quot;\\Storage Card\\YeDooriyan.mp3&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;i.e. it is not able to create an object of the type MPEG::File.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; &quot;&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;arial, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Thu, Nov 26, 2009 at 11:29 AM, pranay prateek &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524788&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pranay.iitm@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;span style=&quot;font-family:arial, sans-serif;font-size:13px;border-collapse:collapse&quot;&gt;&lt;div&gt;Hi all&lt;/div&gt;&lt;div&gt;I am trying to use TagLib to extract album art from audio files. I am building this app for WINCE 6.0 using c++ and Visual Studio 2005 IDE.&lt;/div&gt;

&lt;div&gt;As of now, i am just trying to test it on  mp3 files. If i include all the files from mpeg, toolkit and ape folders, i am able to compile my project.&lt;/div&gt;&lt;div&gt;But, at runtime  it gives an unhandled exception error for some mp3 files, while it runs fine for other mp3 files.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The unhandled exception occurs at   &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;ref() function in RefCounter class&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;called by&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;ByteVector::ByteVector(const ByteVector &amp;amp;v) : d(v.d)&lt;/div&gt;

&lt;div&gt;{&lt;/div&gt;&lt;div&gt;   d-&amp;gt;ref();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It seems the &lt;b&gt;&lt;i&gt;this&lt;/i&gt;&lt;/b&gt; pointer in the ref function called is NULL which is seemingly causing the problem.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;My main issue is how is this working for some MP3 files while not working for others? Does it depend upon some parameter present in MP3 &lt;/div&gt;

&lt;div&gt;files which may not be present in other MP3 files? &lt;/div&gt;&lt;div&gt;Also, i searched the documentation but couldn&amp;#39;t find out what actually is the RefCounter class doing. Why is it being called so many times?&lt;/div&gt;&lt;div&gt;

&lt;br&gt;&lt;/div&gt;&lt;div&gt;Can somebody give me pointers on how this issue could be resolved?&lt;/div&gt;&lt;div&gt;Thanks.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards&lt;/div&gt;&lt;div&gt;Pranay&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;My code is something like this:&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;int main()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;static const char *IdPicture = &amp;quot;APIC&amp;quot; ;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::MPEG::File mpegFile(&amp;quot;\\Storage Card\\YeDooriyan.mp3&amp;quot;);&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::ID3v2::Tag *id3v2tag = mpegFile.ID3v2Tag();&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::ID3v2::FrameList Frame ;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::ID3v2::AttachedPictureFrame *PicFrame ;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;void *RetImage = NULL, *SrcImage ;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;unsigned long Size ;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;FILE *jpegFile;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;fopen_s(&amp;amp;jpegFile,&amp;quot;FromId3.jpg&amp;quot;,&amp;quot;wb&amp;quot;);&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;  if ( id3v2tag )&lt;/div&gt;&lt;div&gt;  {&lt;/div&gt;&lt;div&gt;    // picture frame&lt;/div&gt;&lt;div&gt;    Frame = id3v2tag-&amp;gt;frameListMap()[IdPicture] ;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    if (!Frame.isEmpty() )&lt;/div&gt;&lt;div&gt;

    {&lt;/div&gt;&lt;div&gt;      // find cover art&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;for(TagLib::ID3v2::FrameList::ConstIterator it = Frame.begin(); it !=&lt;/div&gt;&lt;div&gt;Frame.end(); ++it)&lt;/div&gt;&lt;div&gt;
      {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;  PicFrame = (TagLib::ID3v2::AttachedPictureFrame *)(*it) ;&lt;/div&gt;&lt;div&gt;        if ( PicFrame-&amp;gt;type() == TagLib::ID3v2::AttachedPictureFrame::FrontCover)&lt;/div&gt;
&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;          // extract image (in it&amp;#39;s compressed form)&lt;/div&gt;&lt;div&gt;          Size = PicFrame-&amp;gt;picture().size() ;&lt;/div&gt;&lt;div&gt;          SrcImage = malloc ( Size ) ;&lt;/div&gt;&lt;div&gt;          if ( SrcImage )&lt;/div&gt;

&lt;div&gt;          {&lt;/div&gt;&lt;div&gt;            memcpy ( SrcImage, PicFrame-&amp;gt;picture().data(), Size ) ;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;fwrite(SrcImage,Size,1, jpegFile);&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;fclose(jpegFile);&lt;/div&gt;

&lt;div&gt;           &lt;span style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            free( SrcImage ) ;&lt;/div&gt;&lt;div&gt;          }&lt;/div&gt;&lt;div&gt;          if ( RetImage )&lt;/div&gt;&lt;div&gt;            break ;&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;
&lt;div&gt;      }&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;  }&lt;/div&gt;&lt;div&gt;return(0);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/span&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;&amp;quot;You aren&amp;#39;t remembered for doing what is expected of you.&amp;quot;&lt;br&gt;
&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524788&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Album-Art-using-Taglib-tp26524706p26524788.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524706</id>
	<title>Album Art using Taglib</title>
	<published>2009-11-25T21:59:57Z</published>
	<updated>2009-11-25T21:59:57Z</updated>
	<author>
		<name>pranay prateek</name>
	</author>
	<content type="html">&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; &quot;&gt;&lt;div&gt;Hi all&lt;/div&gt;&lt;div&gt;I am trying to use TagLib to extract album art from audio files. I am building this app for WINCE 6.0 using c++ and Visual Studio 2005 IDE.&lt;/div&gt;
&lt;div&gt;As of now, i am just trying to test it on  mp3 files. If i include all the files from mpeg, toolkit and ape folders, i am able to compile my project.&lt;/div&gt;&lt;div&gt;But, at runtime  it gives an unhandled exception error for some mp3 files, while it runs fine for other mp3 files.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The unhandled exception occurs at   &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;ref() function in RefCounter class&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;called by&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;ByteVector::ByteVector(const ByteVector &amp;amp;v) : d(v.d)&lt;/div&gt;
&lt;div&gt;{&lt;/div&gt;&lt;div&gt;   d-&amp;gt;ref();&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It seems the &lt;b&gt;&lt;i&gt;this&lt;/i&gt;&lt;/b&gt; pointer in the ref function called is NULL which is seemingly causing the problem.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;My main issue is how is this working for some MP3 files while not working for others? Does it depend upon some parameter present in MP3 &lt;/div&gt;
&lt;div&gt;files which may not be present in other MP3 files? &lt;/div&gt;&lt;div&gt;Also, i searched the documentation but couldn&amp;#39;t find out what actually is the RefCounter class doing. Why is it being called so many times?&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Can somebody give me pointers on how this issue could be resolved?&lt;/div&gt;&lt;div&gt;Thanks.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards&lt;/div&gt;&lt;div&gt;Pranay&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;My code is something like this:&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;int main()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;static const char *IdPicture = &amp;quot;APIC&amp;quot; ;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::MPEG::File mpegFile(&amp;quot;\\Storage Card\\YeDooriyan.mp3&amp;quot;);&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::ID3v2::Tag *id3v2tag = mpegFile.ID3v2Tag();&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::ID3v2::FrameList Frame ;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::ID3v2::AttachedPictureFrame *PicFrame ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;void *RetImage = NULL, *SrcImage ;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;unsigned long Size ;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;FILE *jpegFile;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;fopen_s(&amp;amp;jpegFile,&amp;quot;FromId3.jpg&amp;quot;,&amp;quot;wb&amp;quot;);&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;  if ( id3v2tag )&lt;/div&gt;&lt;div&gt;  {&lt;/div&gt;&lt;div&gt;    // picture frame&lt;/div&gt;&lt;div&gt;    Frame = id3v2tag-&amp;gt;frameListMap()[IdPicture] ;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    if (!Frame.isEmpty() )&lt;/div&gt;&lt;div&gt;
    {&lt;/div&gt;&lt;div&gt;      // find cover art&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;for(TagLib::ID3v2::FrameList::ConstIterator it = Frame.begin(); it !=&lt;/div&gt;&lt;div&gt;Frame.end(); ++it)&lt;/div&gt;&lt;div&gt;
      {&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;  PicFrame = (TagLib::ID3v2::AttachedPictureFrame *)(*it) ;&lt;/div&gt;&lt;div&gt;        if ( PicFrame-&amp;gt;type() == TagLib::ID3v2::AttachedPictureFrame::FrontCover)&lt;/div&gt;
&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;          // extract image (in it&amp;#39;s compressed form)&lt;/div&gt;&lt;div&gt;          Size = PicFrame-&amp;gt;picture().size() ;&lt;/div&gt;&lt;div&gt;          SrcImage = malloc ( Size ) ;&lt;/div&gt;&lt;div&gt;          if ( SrcImage )&lt;/div&gt;
&lt;div&gt;          {&lt;/div&gt;&lt;div&gt;            memcpy ( SrcImage, PicFrame-&amp;gt;picture().data(), Size ) ;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;fwrite(SrcImage,Size,1, jpegFile);&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;fclose(jpegFile);&lt;/div&gt;
&lt;div&gt;           &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            free( SrcImage ) ;&lt;/div&gt;&lt;div&gt;          }&lt;/div&gt;&lt;div&gt;          if ( RetImage )&lt;/div&gt;&lt;div&gt;            break ;&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;
&lt;div&gt;      }&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;  }&lt;/div&gt;&lt;div&gt;return(0);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/span&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524706&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Album-Art-using-Taglib-tp26524706p26524706.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473652</id>
	<title>Re: Using TagLib with VS2005</title>
	<published>2009-11-22T23:25:03Z</published>
	<updated>2009-11-22T23:25:03Z</updated>
	<author>
		<name>Scott Wheeler</name>
	</author>
	<content type="html">On Nov 22, 2009, at 9:35 PM, pranay prateek wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; In tlist.h, its written that tlist.tcc is included only because &amp;nbsp;
&lt;br&gt;&amp;gt; there is no export function in gcc. Since, i am using VS2005 is it &amp;nbsp;
&lt;br&gt;&amp;gt; possible that
&lt;br&gt;&amp;gt; i can do without the .tcc? If you people have nay suggestion, kindly &amp;nbsp;
&lt;br&gt;&amp;gt; reply.Am bit of stuck on this.
&lt;br&gt;&lt;br&gt;Virtually no compiler (Visual Studio included) supports the feature &amp;nbsp;
&lt;br&gt;that's required there; at the time I wrote that comment I didn't &amp;nbsp;
&lt;br&gt;realize that.
&lt;br&gt;&lt;br&gt;-Scott
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473652&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-TagLib-with-VS2005-tp26469197p26473652.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469197</id>
	<title>Using TagLib with VS2005</title>
	<published>2009-11-22T12:35:40Z</published>
	<updated>2009-11-22T12:35:40Z</updated>
	<author>
		<name>pranay prateek</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;Hi all&lt;div&gt;I am trying to use TagLib to extract album art from audio files. I am building this app for WINCE 6.0 using c++ and Visual Studio 2005 IDE.&lt;/div&gt;&lt;div&gt;As of now, i am just trying to test it on an mp3 file. If i include all the files from mpeg, toolkit and ape folders, i am able to compile my project.&lt;/div&gt;

&lt;div&gt;But, at runtime the it gives an unhandled exception error.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;My main code is simply:&lt;/div&gt;&lt;div&gt;&lt;div&gt;int main()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;TagLib::FileRef f(&amp;quot;\\Storage Card\\YeDooriyan.mp3&amp;quot;);&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;return(0);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;On closer look it seems that the error actually occurs in create function of FileRef.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;The code crashes on this line:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt; List&amp;lt;const FileTypeResolver *&amp;gt;::ConstIterator it = FileRefPrivate::fileTypeResolvers.begin();&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It seems the detach() function in tlist.tcc is being called without being initialised in the first place.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In tlist.h, its written that tlist.tcc is included only because there is no export function in gcc. Since, i am using VS2005 is it possible that &lt;/div&gt;&lt;div&gt;i can do without the .tcc? If you people have nay suggestion, kindly reply.Am bit of stuck on this.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I am newbie in c++ programming, hence am not very converse with the technicalities of compiler.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards&lt;/div&gt;&lt;div&gt;Pranay&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469197&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-TagLib-with-VS2005-tp26469197p26469197.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26447539</id>
	<title>Some questions regarding Album Art picture field</title>
	<published>2009-11-20T09:51:04Z</published>
	<updated>2009-11-20T09:51:04Z</updated>
	<author>
		<name>Anthony Liu</name>
	</author>
	<content type="html">Hi, it seems that taglib supports read/write the album art metadata fields and I wonder what are the supported types ( linked or embedded ?).&lt;br&gt;&lt;br&gt;Is is possible to use taglib to extract pictures from an audio file which has embedded album art?&lt;br&gt;
&lt;br&gt;I have read the document and I know that the TagLib::ID3v2::AttachedPictureFrame Class should be used for the handling of ID3v2 album art fields,&lt;br&gt;but what about the other metadata types (e.g apev2, wma, mpeg4), what are the corresponding fields?&lt;br&gt;
I have done some simple tests, the Windows Media Player seems to use the &amp;quot;WM/Picture&amp;quot; field.&lt;br&gt;&lt;br&gt;Please give some suggestions.&lt;br&gt; &lt;br&gt;-- &lt;br&gt;Best Regards&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26447539&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Some-questions-regarding-Album-Art-picture-field-tp26447539p26447539.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26377417</id>
	<title>Re: [Fwd: [Bug 200596] [Patch] id3v1 japanese characters encoding]</title>
	<published>2009-11-16T10:52:53Z</published>
	<updated>2009-11-16T10:52:53Z</updated>
	<author>
		<name>Bugzilla from mook@songbirdnest.com</name>
	</author>
	<content type="html">On 2009-11-15 1:58 PM, Jeff Mitchell wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We've had some trouble with character set detection that Cesar has
&lt;br&gt;&amp;gt; managed to narrow down to TagLib stripping the Unicode BOM from its
&lt;br&gt;&amp;gt; strings -- see the attached message, and if you need more background the
&lt;br&gt;&amp;gt; last few comments of the associated bug report. Would it be possible to
&lt;br&gt;&amp;gt; provide one of these two solutions?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Jeff
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;/div&gt;For reference, Songbird has a local patch to do B) - it exposes whether 
&lt;br&gt;the string was constructed with the Latin1 or one of the Unicode types. &amp;nbsp;
&lt;br&gt;That's an API change, of course, so it probably wouldn't be valid for 
&lt;br&gt;upstream until 2.0.
&lt;br&gt;&lt;br&gt;TagLib::String::isLatin1() can be used for now, but will still get you 
&lt;br&gt;false positives because it _is_ valid to have metadata that happens to 
&lt;br&gt;be Unicode, contains non-ASCII Latin1, and will be misdetected. &amp;nbsp;At 
&lt;br&gt;least, I don't trust my charset detector that much :)
&lt;br&gt;&lt;br&gt;(The patch is &lt;a href=&quot;http://timeline.songbirdnest.com/vendor/changeset/10855&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://timeline.songbirdnest.com/vendor/changeset/10855&lt;/a&gt;&amp;nbsp;
&lt;br&gt;which doesn't make much sense until you realize we had a previous patch 
&lt;br&gt;in &lt;a href=&quot;http://timeline.songbirdnest.com/vendor/changeset/10852&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://timeline.songbirdnest.com/vendor/changeset/10852&lt;/a&gt;&amp;nbsp;which felt 
&lt;br&gt;suckier.)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Mook
&lt;br&gt;mook@songbirdnest
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26377417&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fwd%3A--Bug-200596---Patch--id3v1-japanese-characters-encoding--tp26363914p26377417.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26363914</id>
	<title>[Fwd: [Bug 200596] [Patch] id3v1 japanese characters encoding]</title>
	<published>2009-11-15T13:58:01Z</published>
	<updated>2009-11-15T13:58:01Z</updated>
	<author>
		<name>Bugzilla from mitchell@kde.org</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;We've had some trouble with character set detection that Cesar has
&lt;br&gt;managed to narrow down to TagLib stripping the Unicode BOM from its
&lt;br&gt;strings -- see the attached message, and if you need more background the
&lt;br&gt;last few comments of the associated bug report. Would it be possible to
&lt;br&gt;provide one of these two solutions?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Jeff
&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;https://bugs.kde.org/show_bug.cgi?id=200596&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.kde.org/show_bug.cgi?id=200596&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--- Comment #31 from Cesar Garcia &amp;lt;cesarg9 gmail com&amp;gt; &amp;nbsp;2009-11-15 18:05:11 ---
&lt;br&gt;I dont know really if the problem is more of taglib or amarok. Seeing the code
&lt;br&gt;of the ::prepare func in taglib/toolkit/tstring.cpp, it strips the unicode BOM
&lt;br&gt;if it finds one, making the charset-detector useless (because it needs the BOM
&lt;br&gt;to identify the string as UTF) then returning a random encoding. The solution
&lt;br&gt;IMO is:
&lt;br&gt;&lt;br&gt;A) making taglib to return the untouched version of the string tag (with the
&lt;br&gt;BOM if it have one) to make the charset-detector more reliable (probably not
&lt;br&gt;the best solution as this changes the expected behaviour in other apps than
&lt;br&gt;uses taglib)
&lt;br&gt;&lt;br&gt;B) that taglib provides a function to check if the original string was an UTF
&lt;br&gt;one (8 or 16) so amarok can skip the charset-detector when isnt needed. I am
&lt;br&gt;already doing this with the patch that i provided: the isLatin1 func of taglib
&lt;br&gt;merely tests if the string isnt unicode (all chars &amp;lt; 256), so amarok can choose
&lt;br&gt;to skip the charset-detector.
&lt;br&gt;&lt;br&gt;P.D.: there is a almost duplicate code of the collectionbrowser in
&lt;br&gt;src/meta/file/File_p.h (around line 227) that i dont know if it can trigger
&lt;br&gt;this bug in another part of amarok.
&lt;br&gt;&lt;br&gt;Sorry for my english.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://bugs.kde.org/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.kde.org/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are on the CC list for the bug.
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26363914&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26363914/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fwd%3A--Bug-200596---Patch--id3v1-japanese-characters-encoding--tp26363914p26363914.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26345529</id>
	<title>Re: Issue copying IDv2 TCON frames with a v1 genre reference</title>
	<published>2009-11-13T16:01:02Z</published>
	<updated>2009-11-13T16:01:02Z</updated>
	<author>
		<name>patrick machielse</name>
	</author>
	<content type="html">Op 13 nov 2009, om 23:33 heeft Michael Smith het volgende geschreven:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; I'm building my own TagLib framework, but I've done nothing special to disable the iTunes hacks. Or should I actively enable them? I'll look into it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I believe they're on by default.
&lt;br&gt;&lt;br&gt;The iTunes hack in TagLib didn't help me because it is in the setGenre() accessor. My copy routine moves frames directy between tags, bypassing the accessor. I'll keep using setGenre() now until the day iTunes gets fixed...
&lt;br&gt;&lt;br&gt;Thanks to everyone who chimed in, it's very much appreciated :-)
&lt;br&gt;&lt;br&gt;patrick
&lt;br&gt;--
&lt;br&gt;Patrick Machielse
&lt;br&gt;Hieper Software
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.hieper.nl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.hieper.nl&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26345529&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26345529&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Issue-copying-IDv2-TCON-frames-with-a-v1-genre-reference-tp26336264p26345529.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26344662</id>
	<title>Re: Issue copying IDv2 TCON frames with a v1 genre reference</title>
	<published>2009-11-13T14:38:22Z</published>
	<updated>2009-11-13T14:38:22Z</updated>
	<author>
		<name>Scott Wheeler</name>
	</author>
	<content type="html">On Nov 13, 2009, at 11:33 PM, Michael Smith wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I've done that already. I think they marked it as a duplicate, which
&lt;br&gt;&amp;gt; means it disappears into never-to-be-seen-again land. Still, more
&lt;br&gt;&amp;gt; people complaining won't hurt.
&lt;br&gt;&lt;br&gt;I did as well -- years ago, I think.
&lt;br&gt;&lt;br&gt;-Scott
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26344662&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Issue-copying-IDv2-TCON-frames-with-a-v1-genre-reference-tp26336264p26344662.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26344614</id>
	<title>Re: Issue copying IDv2 TCON frames with a v1 genre reference</title>
	<published>2009-11-13T14:33:17Z</published>
	<updated>2009-11-13T14:33:17Z</updated>
	<author>
		<name>Michael Smith-59</name>
	</author>
	<content type="html">On Fri, Nov 13, 2009 at 2:25 PM, patrick machielse &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26344614&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;patrick@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Op 13 nov 2009, om 23:00 heeft Lukáš Lalinský het volgende geschreven:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; TCON (42)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; When copied to a new v2 tag, the frame is written out like this:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; TCON 42
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Which is interpreted as a custom genre &amp;quot;42&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It shouldn't be interpretted as a genre &amp;quot;42&amp;quot; by TagLib or any
&lt;br&gt;&amp;gt;&amp;gt; application that supports ID2v2.4. The conversion it does is correct
&lt;br&gt;&amp;gt;&amp;gt; -- TCON with a value &amp;quot;(42)&amp;quot; is the way to write ID3v1-style genres in
&lt;br&gt;&amp;gt;&amp;gt; ID3v2.3, &amp;quot;42&amp;quot; is the way to do it in ID3v2.4. Writing &amp;quot;(42)&amp;quot; to a
&lt;br&gt;&amp;gt;&amp;gt; ID3v2.4 frame would be incorrect (TagLib can only write ID3v2.4 tags).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Blast, it seems you're right. I only looked up the v2.3 specs... So, in sum: TagLib is doing the right thing and iTunes (latest version) seems to map numeric values in 2.4/TCON incorrectly (or not at all).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Note that itunes can't handle v2.4-style numeric genres. Taglib, as of
&lt;br&gt;&amp;gt;&amp;gt; 1.6 I think, won't write out a numeric genre ever (well, unless you
&lt;br&gt;&amp;gt;&amp;gt; disable the itunes hacks), it'll always expand them to the string
&lt;br&gt;&amp;gt;&amp;gt; form.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hmm, I'll submit a report to Apple's bugreporter. Well, it can't hurt...
&lt;/div&gt;&lt;br&gt;I've done that already. I think they marked it as a duplicate, which
&lt;br&gt;means it disappears into never-to-be-seen-again land. Still, more
&lt;br&gt;people complaining won't hurt.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm building my own TagLib framework, but I've done nothing special to disable the iTunes hacks. Or should I actively enable them? I'll look into it.
&lt;br&gt;&lt;br&gt;I believe they're on by default.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;_______________________________________________
&lt;br&gt;taglib-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26344614&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;taglib-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/taglib-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/taglib-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Issue-copying-IDv2-TCON-frames-with-a-v1-genre-reference-tp26336264p26344614.html" />
</entry>

</feed>
