Fix inconsistent scrobbling with GStreamer backend
authorSam Lade <sam@sentynel.com>
Sun, 10 Jun 2012 17:50:56 +0000 (18:50 +0100)
committerSam Lade <sam@sentynel.com>
Sun, 10 Jun 2012 17:50:56 +0000 (18:50 +0100)
commit2a48c4d26f87da240eb9fb625bf887f963987af4
tree9849d381948733820ea5cc2c05b61aa1b0a908d2
parentdc7dce5ae78aec7c8cfaf3ac420d90f2e50769f3
Fix inconsistent scrobbling with GStreamer backend

With the GStreamer backend, the trackChanged signal seems to be emitted
twice on track change, which in turn sometimes triggered a consistency
check in the scrobbling code and sometimes causes tracks not to be
scrobbled. About 1/5 (variable) tracks would be successfully scrobbled.

This should not affect scrobbling with the VLC backend, which emits
correct signals.

This is a temporary hack until MatÄ›j's statistics rewrite is complete.
ChangeLog
src/services/lastfm/ScrobblerAdapter.cpp