<div dir="ltr"><div> </div><div>Hi, </div><div><br></div><div>some part of this tag lib that I do not yet understand </div><div><br></div><div>the case here is to update metadata to file </div><div><br></div><div>first , if I try </div>
<div><br></div><div> TagLib::FileRef f("mytestmp3.mp3");<br></div><div><br></div><div>then f.tag() returns NULL; </div><div><br></div><div>then I do it this way: </div><div><br></div><div> TagLib::MPEG::File mp3File("mytestmp3.mp3");</div>
<div><br></div><div>first round, this mp3 files does not have ID3v2 or ID3v1 </div><div><br></div><div>so it goes to "else" branch and calls to to  create ID3v2Tag(true)</div><div><br></div><div>and then calls </div>
<div><br></div><div>mp3Tagv2->setArtist("setArtistField");<br></div><div><br></div><div>and after that </div><div>bool result = mp3File.save();<br></div><div><br></div><div>..</div><div><br></div><div>then next round .. </div>
<div><br></div><div>hasID3v2Tag() returns true <br></div><div><br></div><div>but actual file in file system does not have metadata updated ,</div><div><br></div><div>so what is the "documented" way , to use propertymaps or something else ? </div>
<div><br></div><div>Thanks in advance </div><div><br></div><div>br. Jarno </div></div>