[rygel] core: Correctly handle WMV cmdline option
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Correctly handle WMV cmdline option
- Date: Tue, 8 Jun 2010 13:04:36 +0000 (UTC)
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]