[rygel] renderer: Use proper error-code on wrong seek



commit 28890320b532bc191b6197d22ba960770d634117
Author: Jens Georg <jensg openismus com>
Date:   Mon Sep 30 11:23:55 2013 +0200

    renderer: Use proper error-code on wrong seek
    
    We were using 710 (Illegal seek mode) instead of the correct 711 (Illegal
    seek target)
    
    This fixes 7.3.157.9
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709077

 src/librygel-renderer/rygel-av-transport.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-renderer/rygel-av-transport.vala b/src/librygel-renderer/rygel-av-transport.vala
index 6744142..0219a97 100644
--- a/src/librygel-renderer/rygel-av-transport.vala
+++ b/src/librygel-renderer/rygel-av-transport.vala
@@ -595,7 +595,7 @@ internal class Rygel.AVTransport : Service {
             debug ("Seeking to %s.", target);
 
             if (!this.player.seek (TimeUtils.time_from_string (target))) {
-                action.return_error (710, _("Seek mode not supported"));
+                action.return_error (711, _("Illegal seek target"));
 
                 return;
             }
@@ -610,7 +610,7 @@ internal class Rygel.AVTransport : Service {
                               TimeUtils.time_from_string (target);
 
             if (!this.player.seek (seek_target)) {
-                action.return_error (710, _("Seek mode not supported"));
+                action.return_error (711, _("Illegal seek target"));
 
                 return;
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]