[rygel] core: Fix TagName != structure key
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Fix TagName != structure key
- Date: Thu, 25 Jun 2009 15:45:09 +0000 (UTC)
commit 6d8fc2082e13951973cc10df21a633ae8e3ee414
Author: Jens Georg <mail jensge org>
Date: Sun May 24 16:26:12 2009 +0200
core: Fix TagName != structure key
src/rygel/rygel-metadata-extractor.vala | 16 +++++++++-------
1 files 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]