[rygel] core: Correct visibility of a few fields



commit 873839d8d1a918d031e2680860ba924c165ef9fa
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sun Oct 31 01:41:29 2010 +0300

    core: Correct visibility of a few fields

 src/rygel/rygel-mp3-transcoder.vala |    2 +-
 src/rygel/rygel-user-config.vala    |   26 ++++++++++++--------------
 src/rygel/rygel-wma-transcoder.vala |    2 +-
 3 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/src/rygel/rygel-mp3-transcoder.vala b/src/rygel/rygel-mp3-transcoder.vala
index 73e6151..4069587 100644
--- a/src/rygel/rygel-mp3-transcoder.vala
+++ b/src/rygel/rygel-mp3-transcoder.vala
@@ -29,7 +29,7 @@ using Gee;
  * for actual transcoding.
  */
 internal class Rygel.MP3Transcoder : Rygel.Transcoder {
-    private const int BITRATE = 256;
+    public const int BITRATE = 256;
 
     private const string[] AUDIO_ENCODER = {null, "twolame", "lame"};
     private const string AUDIO_PARSER = "mp3parse";
diff --git a/src/rygel/rygel-user-config.vala b/src/rygel/rygel-user-config.vala
index fe2b570..528a36d 100644
--- a/src/rygel/rygel-user-config.vala
+++ b/src/rygel/rygel-user-config.vala
@@ -28,20 +28,18 @@ using FreeDesktop;
  * Manages the user configuration for Rygel.
  */
 public class Rygel.UserConfig : GLib.Object, Configuration {
-    protected static const string CONFIG_FILE = "rygel.conf";
-    protected static const string IFACE_KEY = "interface";
-    protected static const string PORT_KEY = "port";
-    protected static const string ENABLED_KEY = "enabled";
-    protected static const string TITLE_KEY = "title";
-    protected static const string TRANSCODING_KEY = "enable-transcoding";
-    protected static const string MP3_TRANSCODER_KEY = "enable-mp3-transcoder";
-    protected static const string MP2TS_TRANSCODER_KEY =
-                                                    "enable-mp2ts-transcoder";
-    protected static const string LPCM_TRANSCODER_KEY =
-                                                    "enable-lpcm-transcoder";
-    protected static const string WMV_TRANSCODER_KEY = "enable-wmv-transcoder";
-    protected static const string LOG_LEVEL_KEY = "log-level";
-    protected static const string PLUGIN_PATH_KEY = "plugin-path";
+    public static const string CONFIG_FILE = "rygel.conf";
+    public static const string IFACE_KEY = "interface";
+    public static const string PORT_KEY = "port";
+    public static const string ENABLED_KEY = "enabled";
+    public static const string TITLE_KEY = "title";
+    public static const string TRANSCODING_KEY = "enable-transcoding";
+    public static const string MP3_TRANSCODER_KEY = "enable-mp3-transcoder";
+    public static const string MP2TS_TRANSCODER_KEY = "enable-mp2ts-transcoder";
+    public static const string LPCM_TRANSCODER_KEY = "enable-lpcm-transcoder";
+    public static const string WMV_TRANSCODER_KEY = "enable-wmv-transcoder";
+    public static const string LOG_LEVEL_KEY = "log-level";
+    public static const string PLUGIN_PATH_KEY = "plugin-path";
 
     private const string RYGEL_SERVICE = "org.gnome.Rygel1";
     private const string RYGEL_PATH = "/org/gnome/Rygel1";
diff --git a/src/rygel/rygel-wma-transcoder.vala b/src/rygel/rygel-wma-transcoder.vala
index c18fc04..30652a0 100644
--- a/src/rygel/rygel-wma-transcoder.vala
+++ b/src/rygel/rygel-wma-transcoder.vala
@@ -23,7 +23,7 @@ using Gst;
 using GUPnP;
 
 internal class Rygel.WMATranscoder : Rygel.Transcoder {
-    private const int BITRATE = 64;
+    public const int BITRATE = 64;
 
     private const string CONVERT_SINK_PAD = "convert-sink-pad";
 



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