rygel r40 - in trunk: . src



Author: zeeshanak
Date: Tue Oct 28 20:58:55 2008
New Revision: 40
URL: http://svn.gnome.org/viewvc/rygel?rev=40&view=rev

Log:
Xbox 360 uses 'ContainerID' instead of 'ObjectID' for cotainers.

Modified:
   trunk/ChangeLog
   trunk/src/gupnp-media-server.c

Modified: trunk/src/gupnp-media-server.c
==============================================================================
--- trunk/src/gupnp-media-server.c	(original)
+++ trunk/src/gupnp-media-server.c	Tue Oct 28 20:58:55 2008
@@ -215,10 +215,18 @@
 
         /* ObjectID */
         if (!object_id) {
-                gupnp_service_action_return_error
-                        (action, 701, "No such object");
+                /* Stupid Xbox */
+                gupnp_service_action_get (action,
+                                          "ContainerID",
+                                          G_TYPE_STRING,
+                                          &object_id,
+                                          NULL);
+                if (!object_id) {
+                        gupnp_service_action_return_error
+                                (action, 701, "No such object");
 
-                goto OUT;
+                        goto OUT;
+                }
         }
 
         if (browse_metadata) {



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