[gnome-music] Fix ! §%%$§* playbin about-to -finish segfault
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Fix ! §%%$§* playbin about-to -finish segfault
- Date: Mon, 29 Apr 2013 15:37:35 +0000 (UTC)
commit 5ec38a5e9627f1e8c307f1b78aec41e54533db2b
Author: Seif Lotfy <seif lotfy com>
Date: Mon Apr 29 17:36:59 2013 +0200
Fix ! §%%$§* playbin about-to-finish segfault
src/player.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 524856a..07c6c7e 100644
--- a/src/player.js
+++ b/src/player.js
@@ -100,13 +100,14 @@ const Player = new Lang.Class({
if (this.timeout) {
GLib.source_remove(this.timeout);
}
+ GLib.idle_add(0, Lang.bind(this, function () {
if (!this.playlist || !this.currentTrack || !this.playlist.iter_next(this.currentTrack))
this.currentTrack=null;
else {
this.load( this.playlist.get_value( this.currentTrack, this.playlist_field));
this.timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 1000, Lang.bind(this,
this._updatePositionCallback));
}
- return true;
+ return false;}))
}));
this.bus = this.player.get_bus();
this.bus.add_signal_watch()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]