Skip to content

Instantly share code, notes, and snippets.

@shivanipods
Created June 11, 2013 15:42
Show Gist options
  • Save shivanipods/5757950 to your computer and use it in GitHub Desktop.
Save shivanipods/5757950 to your computer and use it in GitHub Desktop.
<<<<<<< HEAD
if (this.timeout) {
GLib.source_remove(this.timeout);
}
if (!this.playlist || !this.currentTrack || !this.playlist.iter_next(this.currentTrack)){
if (RepeatType.ALL == this.repeat) {
this.currentTrack = this.playlist.get_iter_first()[1];
this.load(this.playlist.get_value(this.currentTrack, this.playlistField));
this.progressScale.set_value(0);
this.player.set_state(Gst.State.PLAYING);
this.onProgressScaleChangeValue(this.progressScale);
this.timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 1000, Lang.bind(this, this._updatePositionCallback));
}
else
this.currentTrack=null;
}
=======
this.load_next_track_lock = true;
if (!this.playlist || !this.currentTrack || !this.playlist.iter_next(this.currentTrack))
this.currentTrack=null;
>>>>>>> 982e24d8459dc93ed0cb0dcaa09b07d56e7c249f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment