~ubuntu-branches/ubuntu/raring/mpdscribble/raring

« back to all changes in this revision

Viewing changes to src/mpdscribble.c

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2011-08-05 14:14:04 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110805141404-6gl4s99bw75t197n
Tags: 0.22-1
* Orphaning package, changing maintainer to QA.
* New upstream release.
* Bump standards to 3.9.2.
* Add build-arch/indep targets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
                   stop and re-start */
167
167
                g_debug("repeated song detected");
168
168
 
169
 
                song_ended(song);
 
169
                song_ended(song, false);
170
170
                song_started(song);
171
171
        }
172
172
}
175
175
 * MPD stopped playing this song.
176
176
 */
177
177
void
178
 
song_ended(const struct mpd_song *song)
 
178
song_ended(const struct mpd_song *song, bool love)
179
179
{
180
180
        int elapsed = g_timer_elapsed(timer, NULL);
181
181
 
193
193
                      mpd_song_get_duration(song) > 0
194
194
                      ? mpd_song_get_duration(song)
195
195
                      : g_timer_elapsed(timer, NULL),
 
196
                      love,
196
197
                      NULL);
197
198
}
198
199