~chris.gagnon/+junk/coverage_mh

« back to all changes in this revision

Viewing changes to src/core/media/player_skeleton.cpp

  • Committer: Chris Gagnon
  • Date: 2014-05-21 22:22:35 UTC
  • mfrom: (31.2.4 media-hub)
  • Revision ID: chris.gagnon@canonical.com-20140521222235-666tur5s8wl5yhra
[ Jim Hodapp ]
* Whitelist gallery app to be able to play media in ~/Videos and
  ~/Music unti the trusted helper is ready
[ Oliver Grawert ]
* make sure media-hub-server only starts on real ubuntu-touch sessions (i.e.
  not in the new unity8 desktop session which lacks the codecs)
  (LP: 1321204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
 
200
200
        // Check in ~/Music and ~/Videos
201
201
        // TODO: when the trust store lands, check it to see if this app can access the dirs and
202
 
        // then remove the explicit whitelist of the music-app
203
 
        else if (pkgname == "com.ubuntu.music" &&
 
202
        // then remove the explicit whitelist of the music-app, and gallery-app
 
203
        else if ((pkgname == "com.ubuntu.music" || pkgname == "com.ubuntu.gallery") &&
204
204
                (uri.find(std::string("Music/")) != std::string::npos
205
205
                || uri.find(std::string("Videos/")) != std::string::npos))
206
206
        {