[rygel] playbin: Save URI ourselves
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] playbin: Save URI ourselves
- Date: Tue, 3 Jul 2012 07:55:45 +0000 (UTC)
commit 6fc817c19a9b066fe9e9f4dc8cbce13f1b4bea12
Author: Jens Georg <mail jensge org>
Date: Wed May 23 16:28:33 2012 +0200
playbin: Save URI ourselves
Getting the current URI from the playbin only seems to work if its state is
not NULL.
src/plugins/playbin/rygel-playbin-player.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/playbin/rygel-playbin-player.vala b/src/plugins/playbin/rygel-playbin-player.vala
index 6b160c9..60919af 100644
--- a/src/plugins/playbin/rygel-playbin-player.vala
+++ b/src/plugins/playbin/rygel-playbin-player.vala
@@ -120,12 +120,14 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
private string transfer_mode = null;
+ private string? _uri = null;
public string? uri {
owned get {
- return this.playbin.uri;
+ return _uri;
}
set {
+ this._uri = value;
this.playbin.set_state (State.READY);
this.playbin.uri = value;
if (value != "") {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]