rygel r750 - trunk/src/rygel



Author: zeeshanak
Date: Sat Mar 28 00:44:50 2009
New Revision: 750
URL: http://svn.gnome.org/viewvc/rygel?rev=750&view=rev

Log:
No need to mark TranscodeManager's methods 'internal'.

The public methods of an internal class are automatically internal.

Modified:
   trunk/src/rygel/rygel-transcode-manager.vala

Modified: trunk/src/rygel/rygel-transcode-manager.vala
==============================================================================
--- trunk/src/rygel/rygel-transcode-manager.vala	(original)
+++ trunk/src/rygel/rygel-transcode-manager.vala	Sat Mar 28 00:44:50 2009
@@ -32,21 +32,20 @@
     private Transcoder mp2ts_hd_transcoder;
     private Transcoder mp2ts_sd_transcoder;
 
-    internal TranscodeManager () {
+    public TranscodeManager () {
         l16_transcoder = new L16Transcoder ();
         mp3_transcoder = new MP3Transcoder (MP3Layer.THREE);
         mp2ts_sd_transcoder = new MP2TSTranscoder(MP2TSProfile.SD);
         mp2ts_hd_transcoder = new MP2TSTranscoder(MP2TSProfile.HD);
     }
 
-    internal abstract string create_uri_for_item
-                                            (MediaItem  item,
-                                             string?    transcode_target,
-                                             out string protocol);
-
-    internal virtual void add_resources (ArrayList<DIDLLiteResource?> resources,
-                                         MediaItem                    item)
-                                         throws Error {
+    public abstract string create_uri_for_item (MediaItem  item,
+                                                string?    transcode_target,
+                                                out string protocol);
+
+    public virtual void add_resources (ArrayList<DIDLLiteResource?> resources,
+                                       MediaItem                    item)
+                                       throws Error {
         if (item.upnp_class.has_prefix (MediaItem.IMAGE_CLASS)) {
             // No  transcoding for images yet :(
             return;
@@ -59,7 +58,7 @@
         }
     }
 
-    internal Transcoder get_transcoder (string  target) throws Error {
+    public Transcoder get_transcoder (string  target) throws Error {
         if (this.mp3_transcoder.can_handle (target)) {
             return this.mp3_transcoder;
         } else if (this.l16_transcoder.can_handle (target)) {
@@ -75,10 +74,10 @@
         }
     }
 
-    internal DIDLLiteResource create_resource (MediaItem  item,
-                                               string     mime_type,
-                                               string     dlna_profile)
-                                               throws Error {
+    public DIDLLiteResource create_resource (MediaItem  item,
+                                             string     mime_type,
+                                             string     dlna_profile)
+                                             throws Error {
         string protocol;
         var uri = this.create_uri_for_item (item, dlna_profile, out protocol);
         DIDLLiteResource res = item.create_res (uri);



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