Revision d47534c...

Go back to digest for 23rd September 2012

Optimization in Multimedia

Matěj Laitl committed changes in [amarok] /:

Implement Meta::Track::finishedPlaying(), ditch redundant implementations

code sharing++! Also harmonize the logic, it is now:

Raise play count if one of these hold:
* song is shorter than 30s and it has been played fully
* song is longer than 30s and at least 50% was played
* at least 5 minutes of the song was played

File Changes

Modified 16 files
  •   src/services/ServiceMetaBase.cpp
  •   src/services/ServiceMetaBase.h
  •   src/core-impl/support/PersistentStatisticsStore.cpp
  •   src/core-impl/support/PersistentStatisticsStore.h
  •   src/core/meta/Meta.cpp
  •   src/core/podcasts/PodcastMeta.h
  •   src/core/support/Amarok.h
  •   src/core-impl/collections/ipodcollection/IpodMeta.cpp
  •   src/core-impl/collections/ipodcollection/IpodMeta.h
  •   src/core-impl/meta/file/File.cpp
  •   src/core-impl/meta/file/File.h
  •   src/services/lastfm/meta/LastFmMeta.cpp
  •   src/services/lastfm/meta/LastFmMeta.h
  •   tests/core-impl/meta/file/TestMetaFileTrack.cpp
  •   src/core-impl/collections/db/sql/SqlMeta.cpp
  •   src/core-impl/collections/db/sql/SqlMeta.h
16 files changed in total