[rygel] core: Micro refactor



commit 1ef60942f5d122538e4a89bf9e0d952cd20a2061
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Sep 17 18:36:24 2010 +0300

    core: Micro refactor

 src/rygel/rygel-media-item.vala |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index 18e809f..ab5651e 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -162,12 +162,8 @@ public abstract class Rygel.MediaItem : MediaObject {
          * there just choose the first one in the list instead of the one they
          * can handle.
          */
-        if (this.place_holder) {
-            this.add_proxy_resources (http_server, didl_item);
-        } else {
-            // Add the transcoded/proxy URIs first
-            this.add_proxy_resources (http_server, didl_item);
-
+        this.add_proxy_resources (http_server, didl_item);
+        if (!this.place_holder) {
             // then original URIs
             bool internal_allowed;
             internal_allowed = http_server.context.interface == "lo" ||



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