From 6d8fc2082e13951973cc10df21a633ae8e3ee414 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Sun, 24 May 2009 16:26:12 +0200 Subject: [PATCH] core: Fix TagName != structure key --- src/rygel/rygel-metadata-extractor.vala | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/rygel/rygel-metadata-extractor.vala b/src/rygel/rygel-metadata-extractor.vala index 3913078..868067f 100644 --- a/src/rygel/rygel-metadata-extractor.vala +++ b/src/rygel/rygel-metadata-extractor.vala @@ -276,22 +276,24 @@ public class Rygel.MetadataExtractor: GLib.Object { } private void extract_audio_info (Structure structure) { - this.extract_int_value (structure, TAG_RYGEL_CHANNELS); - this.extract_int_value (structure, TAG_RYGEL_RATE); + this.extract_int_value (structure, "channels", TAG_RYGEL_CHANNELS); + this.extract_int_value (structure, "rate", TAG_RYGEL_RATE); } private void extract_video_info (Structure structure) { - this.extract_int_value (structure, TAG_RYGEL_WIDTH); - this.extract_int_value (structure, TAG_RYGEL_HEIGHT); - this.extract_int_value (structure, TAG_RYGEL_DEPTH); + this.extract_int_value (structure, "width", TAG_RYGEL_WIDTH); + this.extract_int_value (structure, "height", TAG_RYGEL_HEIGHT); + this.extract_int_value (structure, "depth", TAG_RYGEL_DEPTH); } - private void extract_int_value (Structure structure, string key) { + private void extract_int_value (Structure structure, + string key, + string tag) { int val; if (structure.get_int (key, out val)) { tag_list.add (TagMergeMode.REPLACE, - key, + tag, val); } } -- 2.7.4