~ci-train-bot/qtubuntu-media/qtubuntu-media-ubuntu-zesty-2472

« back to all changes in this revision

Viewing changes to src/aal/aalmediaplaylistprovider.cpp

  • Committer: Bileto Bot
  • Author(s): Jim Hodapp
  • Date: 2016-07-20 21:27:56 UTC
  • mfrom: (108.2.7 qtubuntu-media)
  • Revision ID: ci-train-bot@canonical.com-20160720212756-twhdhtajmdt5tcyp
Register for media-hub service unregister/register signals and raise an error to the client application when media-hub-server unregisters and then re-registers on dbus. This will allow the client to handle this event as it deems appropriate. (LP: #1506953)

Approved by: Konrad Zapałowicz

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
AalMediaPlaylistProvider::~AalMediaPlaylistProvider()
50
50
{
51
 
    qDebug() << Q_FUNC_INFO;
52
51
    disconnect_signals();
53
52
}
54
53
 
414
413
 
415
414
    try {
416
415
        m_hubTrackList = m_hubPlayerSession->track_list();
417
 
    }
418
 
    catch (std::runtime_error &e) {
419
 
        qWarning() << "FATAL: Failed to retrieve the current player session TrackList: " << e.what();
 
416
    } catch (std::runtime_error &e) {
 
417
        qWarning() << "FATAL: Failed to retrieve the current player session TrackList:" << e.what();
420
418
    }
421
419
 
422
420
    /* Disconnect first to avoid duplicated calls */