[rygel/rygel-0-22] renderer: Check instance id of prev/next
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-22] renderer: Check instance id of prev/next
- Date: Sat, 26 Jul 2014 06:40:15 +0000 (UTC)
commit efc9a74d6bb9fa66ad4f65e83a4e8148383b2c09
Author: Jens Georg <mail jensge org>
Date: Sat Jun 28 11:53:43 2014 +0200
renderer: Check instance id of prev/next
Signed-off-by: Jens Georg <mail jensge org>
src/librygel-renderer/rygel-av-transport.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-renderer/rygel-av-transport.vala b/src/librygel-renderer/rygel-av-transport.vala
index 361df7e..47a1a12 100644
--- a/src/librygel-renderer/rygel-av-transport.vala
+++ b/src/librygel-renderer/rygel-av-transport.vala
@@ -581,6 +581,10 @@ internal class Rygel.AVTransport : Service {
}
private void next_cb (Service service, ServiceAction action) {
+ if (!this.check_instance_id (action)) {
+ return;
+ }
+
if (this.controller.next ()) {
action.return ();
} else {
@@ -589,6 +593,10 @@ internal class Rygel.AVTransport : Service {
}
private void previous_cb (Service service, ServiceAction action) {
+ if (!this.check_instance_id (action)) {
+ return;
+ }
+
if (this.controller.previous ()) {
action.return ();
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]