~ci-train-bot/qtubuntu-media/qtubuntu-media-ubuntu-yakkety-landing-056

« back to all changes in this revision

Viewing changes to src/aal/aalutility.cpp

  • Committer: CI Train Bot
  • Author(s): Jim Hodapp
  • Date: 2016-01-12 15:55:53 UTC
  • mfrom: (83.1.17 qtubuntu-media-1528898)
  • Revision ID: ci-train-bot@canonical.com-20160112155553-a9a73lqaktpkj500
Fix bug #1528898 Fixes: #1528898
Approved by: Andrew Hayzen

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include <QDebug>
20
20
 
 
21
// Uncomment for more verbose debugging to stdout/err
 
22
//#define VERBOSE_DEBUG
 
23
 
21
24
QUrl AalUtility::unescape(const QMediaContent &media)
22
25
{
23
26
    if (media.isNull())
24
27
        return QUrl();
25
28
 
26
29
    if (media.canonicalUrl().isLocalFile()) {
 
30
#ifdef VERBOSE_DEBUG
27
31
        qDebug() << "Local file URI: " << QUrl::fromPercentEncoding(media.canonicalUrl().toString().toUtf8());
 
32
#endif
28
33
        return QUrl::fromPercentEncoding(media.canonicalUrl().toString().toUtf8());
29
34
    }
30
35
    else {
 
36
#ifdef VERBOSE_DEBUG
31
37
        qDebug() << "Remote stream URI: " << QUrl::fromEncoded(media.canonicalUrl().toString().toUtf8());
 
38
#endif
32
39
        return QUrl::fromEncoded(media.canonicalUrl().toString().toUtf8());
33
40
    }
34
41
}