[rygel/rygel-0-20] mpris: Get can_seek information from peer
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-20] mpris: Get can_seek information from peer
- Date: Mon, 14 Oct 2013 10:12:47 +0000 (UTC)
commit 8d09dc86bacc5f5a34c1022301a32550dece0bd8
Author: Jens Georg <jensg openismus com>
Date: Mon Oct 7 17:16:02 2013 +0200
mpris: Get can_seek information from peer
src/plugins/mpris/rygel-mpris-interfaces.vala | 1 +
src/plugins/mpris/rygel-mpris-player.vala | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/mpris/rygel-mpris-interfaces.vala b/src/plugins/mpris/rygel-mpris-interfaces.vala
index 42ea269..7be0353 100644
--- a/src/plugins/mpris/rygel-mpris-interfaces.vala
+++ b/src/plugins/mpris/rygel-mpris-interfaces.vala
@@ -42,6 +42,7 @@ public interface Rygel.MPRIS.MediaPlayer.PlayerProxy : DBusProxy,
public abstract double volume { get; set; }
public abstract int64 position { get; }
+ public abstract bool can_seek { get; }
public abstract HashTable<string,Variant> metadata { owned get; }
public abstract void pause () throws DBusError;
diff --git a/src/plugins/mpris/rygel-mpris-player.vala b/src/plugins/mpris/rygel-mpris-player.vala
index e548c45..ef1914e 100644
--- a/src/plugins/mpris/rygel-mpris-player.vala
+++ b/src/plugins/mpris/rygel-mpris-player.vala
@@ -120,7 +120,11 @@ public class Rygel.MPRIS.Player : GLib.Object, Rygel.MediaPlayer {
public string? metadata { owned get; set; }
public string? content_features { owned get; set; }
- public bool can_seek { get { return true; } }
+ public bool can_seek {
+ get {
+ return this.actual_player.can_seek;
+ }
+ }
public double volume {
get {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]