[rygel] core: Advertise transcoder if DLNA PN is different



commit f2c3fe492f2ef2d33280dcb3d11ca4def8e7371e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Dec 2 00:04:44 2010 +0200

    core: Advertise transcoder if DLNA PN is different
    
    Only refuse to advertise the transcoder for an item if it's DLNA profile
    is the same as that of the item in question.

 src/rygel/rygel-transcoder.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-transcoder.vala b/src/rygel/rygel-transcoder.vala
index f48bf46..2a53cb4 100644
--- a/src/rygel/rygel-transcoder.vala
+++ b/src/rygel/rygel-transcoder.vala
@@ -60,7 +60,8 @@ internal abstract class Rygel.Transcoder : GLib.Object {
                                                    MediaItem        item,
                                                    TranscodeManager manager)
                                                    throws Error {
-        if (this.mime_type_is_a (item.mime_type, this.mime_type)) {
+        if (this.mime_type_is_a (item.mime_type, this.mime_type) &&
+            this.dlna_profile == item.dlna_profile) {
             return null;
         }
 



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