rygel r689 - trunk/src/rygel



Author: zeeshanak
Date: Sun Mar 15 19:03:41 2009
New Revision: 689
URL: http://svn.gnome.org/viewvc/rygel?rev=689&view=rev

Log:
Don't create transcode resource if not needed.

Modified:
   trunk/src/rygel/rygel-transcode-manager.vala

Modified: trunk/src/rygel/rygel-transcode-manager.vala
==============================================================================
--- trunk/src/rygel/rygel-transcode-manager.vala	(original)
+++ trunk/src/rygel/rygel-transcode-manager.vala	Sun Mar 15 19:03:41 2009
@@ -40,6 +40,11 @@
             return;
         } else {
             var mime_type = "video/mpeg";
+
+            if (item.mime_type == mime_type) {
+                return;
+            }
+
             string protocol;
             var uri = this.create_uri_for_item (item, mime_type, out protocol);
             DIDLLiteResource res = item.create_res (uri);



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