core: Change wording for profiles debugging
authorJens Georg <mail@jensge.org>
Tue, 6 Dec 2011 12:26:58 +0000 (13:26 +0100)
committerJens Georg <mail@jensge.org>
Wed, 7 Dec 2011 09:12:11 +0000 (10:12 +0100)
src/rygel/rygel-gst-utils.vala
src/rygel/rygel-transcoder.vala

index 47b36f1..f48a4ff 100644 (file)
@@ -93,9 +93,9 @@ internal abstract class Rygel.GstUtils {
     }
 
     public static void dump_encoding_profile (EncodingProfile profile,
-                                              int             indent = 0) {
+                                              int             indent = 2) {
         var indent_s = string.nfill (indent, ' ');
-        debug (indent_s + "Dumping %s", profile.get_name ());
+        debug (indent_s + "%s:", profile.get_name ());
         debug (indent_s + "  Format: %s", profile.get_format ().to_string ());
         if (profile.get_restriction () != null) {
             debug (indent_s + "  Restriction: %s",
@@ -103,9 +103,10 @@ internal abstract class Rygel.GstUtils {
         }
 
         if (profile is EncodingContainerProfile) {
-        foreach (var subprofile in (profile as EncodingContainerProfile).get_profiles ()) {
-            dump_encoding_profile (subprofile, indent + 4);
-        }
+            var container = profile as EncodingContainerProfile;
+            foreach (var subprofile in container.get_profiles ()) {
+                dump_encoding_profile (subprofile, indent + 4);
+            }
         }
     }
 
index 92e0f5a..2e7b28e 100644 (file)
@@ -69,6 +69,8 @@ internal abstract class Rygel.Transcoder : GLib.Object {
                                                 ENCODE_BIN);
 
         encoder.profile = this.get_encoding_profile ();
+        debug ("%s using the following encoding profile:",
+               this.get_class ().get_type ().name ());
         GstUtils.dump_encoding_profile (encoder.profile);
 
         var bin = new Bin ("transcoder-source");