[rygel] core: Change wording for profiles debugging
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Change wording for profiles debugging
- Date: Wed, 7 Dec 2011 09:14:24 +0000 (UTC)
commit b75eaa81675d58b777aadd24162c77aec8b59ec8
Author: Jens Georg <mail jensge org>
Date: Tue Dec 6 13:26:58 2011 +0100
core: Change wording for profiles debugging
src/rygel/rygel-gst-utils.vala | 11 ++++++-----
src/rygel/rygel-transcoder.vala | 2 ++
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-gst-utils.vala b/src/rygel/rygel-gst-utils.vala
index 47b36f1..f48a4ff 100644
--- a/src/rygel/rygel-gst-utils.vala
+++ b/src/rygel/rygel-gst-utils.vala
@@ -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);
+ }
}
}
diff --git a/src/rygel/rygel-transcoder.vala b/src/rygel/rygel-transcoder.vala
index 92e0f5a..2e7b28e 100644
--- a/src/rygel/rygel-transcoder.vala
+++ b/src/rygel/rygel-transcoder.vala
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]