[rygel] core: Correctly handle WMV cmdline option



commit 468dcfec0b97416ba50fd3ac412b7e8049dd36da
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Jun 8 15:34:41 2010 +0300

    core: Correctly handle WMV cmdline option
    
    Correctly handle boolean commandline option for disabling WMV transcoder.

 src/rygel/rygel-cmdline-config.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-cmdline-config.vala b/src/rygel/rygel-cmdline-config.vala
index 3148ad3..8f39ec8 100644
--- a/src/rygel/rygel-cmdline-config.vala
+++ b/src/rygel/rygel-cmdline-config.vala
@@ -173,7 +173,11 @@ public class Rygel.CmdlineConfig : GLib.Object, Configuration {
     }
 
     public bool get_wmv_transcoder () throws GLib.Error {
-        return !no_wmv_trans;
+        if (!no_wmv_trans) {
+            throw new ConfigurationError.NO_VALUE_SET (_("No value available"));
+        } else {
+            return false;
+        }
     }
 
     public LogLevel get_log_level () throws GLib.Error {



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