<table><tr><td style="">wbauer created this revision.<br />wbauer added a reviewer: Amarok.<br />wbauer added a project: Amarok.<br />Herald removed a project: Amarok.<br />Herald added a subscriber: amarok-devel.<br />wbauer requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21478">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Use QUrl::fromUserInput() to handle local file paths (without "file://") as well.<br />
<tt style="background: #ebebeb; font-size: 13px;">QUrl::AssumeLocalFiles</tt> is passed to avoid DNS lookups for non-existent/mistyped file names.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Created a file 1d5d9dD.oga in /home/wolfi/Desktop/ (anything will do of course).<br />
Ran:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">amarok file:///home/wolfi/Desktop/1d5d9dD.oga</li>
<li class="remarkup-list-item">amarok /home/wolfi/Desktop/1d5d9dD.oga</li>
<li class="remarkup-list-item">amarok 1d5d9dD.oga</li>
</ul>

<p>The file was opened and played sucessfully in all cases, whereas before only the first one worked (with phonon-backend-gstreamer at least).</p>

<p>Tested with both phonon-backend-gstreamer and phonon-backend-vlc.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R181 Amarok</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21478">https://phabricator.kde.org/D21478</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/App.cpp</div></div></div><br /><div><strong>To: </strong>wbauer, Amarok<br /><strong>Cc: </strong>amarok-devel<br /></div>