<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/108542/">http://git.reviewboard.kde.org/r/108542/</a>
     </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Hi, thanks for the patch, Opus codec support is (and will be even more in future) a requested feature.

Apart from comments below, there's one big thing: it doesn't build with TagLib 1.7 or 1.8, right? Please add cmake test to detect opus support and #ifdef the code - very similarly how this is done with mod/s3m support. A note in README file would be good too. Otherwise this looks good.

If you were an Amaork developer, you'd also add ChangeLog entry and search bugs.kde.org for any requests closed by this and add commit tags per https://projects.kde.org/projects/kde/kdelibs/repository/revisions/master/raw/.commit-template</pre>
 <br />







<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/108542/diff/1/?file=108587#file108587line90" style="color: black; font-weight: bold; text-decoration: underline;">shared/FileTypeResolver.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">TagLib::File *Meta::Tag::FileTypeResolver::createFile(TagLib::FileName fileName,</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">90</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="k">else</span> <span class="k">if</span><span class="p">(</span> <span class="n">mimetype</span><span class="o">-></span><span class="n">is</span><span class="p">(</span> <span class="n">QLatin1String</span><span class="p">(</span><span class="s">"audio/x-opus+ogg"</span><span class="p">)</span> <span class="p">)</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">91</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">             <span class="o">||</span> <span class="n">mimetype</span><span class="o">-></span><span class="n">is</span><span class="p">(</span> <span class="n">QLatin1String</span><span class="p">(</span><span class="s">"audio/opus"</span><span class="p">)</span> <span class="p">)</span> <span class="p">)</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">92</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="p">{</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">93</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">result</span> <span class="o">=</span> <span class="k">new</span> <span class="n">TagLib</span><span class="o">::</span><span class="n">Ogg</span><span class="o">::</span><span class="n">Opus</span><span class="o">::</span><span class="n">File</span><span class="p">(</span><span class="n">fileName</span><span class="p">,</span> <span class="n">readProperties</span><span class="p">,</span> <span class="n">propertiesStyle</span><span class="p">);</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">94</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="p">}</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Hmm, http://en.wikipedia.org/wiki/Opus_%28audio_format%29 mentions just audio/opus (and audio/ogg, but let's not assign opus to plain audio/ogg) - have you seen audio/x-opus+ogg being used somewhere? I have no mention of opus under my /usr/share/mime - do you have some? Also note nice tool called kmimetypefinder.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/108542/diff/1/?file=108588#file108588line276" style="color: black; font-weight: bold; text-decoration: underline;">shared/tag_helpers/TagHelper.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">Meta::Tag::selectHelper( const TagLib::FileRef fileref, bool forceCreation )</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">276</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            <span class="n">tagHelper</span> <span class="o">=</span> <span class="k">new</span> <span class="n">VorbisCommentTagHelper</span><span class="p">(</span> <span class="n">fileref</span><span class="p">.</span><span class="n">tag</span><span class="p">(),</span> <span class="n">file</span><span class="o">-></span><span class="n">tag</span><span class="p">(),</span> <span class="n">Amarok</span><span class="o">::</span><span class="n">Ogg</span> <span class="p">);</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Amarok::Opus instead of Amarok::Ogg here?</pre>
</div>
<br />



<p>- MatÄ›j</p>


<br />
<p>On January 22nd, 2013, 11:49 a.m. UTC, Martin Brodbeck wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Amarok.</div>
<div>By Martin Brodbeck.</div>


<p style="color: grey;"><i>Updated Jan. 22, 2013, 11:49 a.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Support for .opus file tags added. Not sure about the mime type. Recent version of taglib necessary.</pre>
  </td>
 </tr>
</table>





<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>shared/FileType.h <span style="color: grey">(b3d4470f11e48027e4442f8de8b305fc0df07e59)</span></li>

 <li>shared/FileType.cpp <span style="color: grey">(43d8777c3b2010f40147dad24138aa513b8ec481)</span></li>

 <li>shared/FileTypeResolver.cpp <span style="color: grey">(63a83e120f7197c44b86dbdcbcf663c8d42a8d2f)</span></li>

 <li>shared/tag_helpers/TagHelper.cpp <span style="color: grey">(45340180139b9ac0604ad93483dd9fd725a4cb02)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/108542/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>