[rygel] external: Support pixel-aspect-ratio properties



commit 5e89f68d8e7db37486314b2ce36bac6582213818
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Oct 20 01:46:57 2009 +0300

    external: Support pixel-aspect-ratio properties

 src/plugins/external/rygel-external-item.vala |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-item.vala b/src/plugins/external/rygel-external-item.vala
index 45cff59..944673c 100644
--- a/src/plugins/external/rygel-external-item.vala
+++ b/src/plugins/external/rygel-external-item.vala
@@ -192,6 +192,16 @@ public class Rygel.ExternalItem : Rygel.MediaItem {
             this.color_depth = value.get_int ();
         }
 
+        value = item_props.lookup ("PixelWidth");
+        if (value != null) {
+            this.pixel_width = value.get_int ();
+        }
+
+        value = item_props.lookup ("PixelHeight");
+        if (value != null) {
+            this.pixel_height = value.get_int ();
+        }
+
         if (thumbnail != null) {
             this.thumbnails.add (thumbnail);
         }



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