[grilo-plugins] upnp: Use container "0" when browsing with filters



commit 487154e946bb8267416abe67b205d0c192684b7a
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Tue Aug 20 20:46:23 2013 +0000

    upnp: Use container "0" when browsing with filters
    
    Browsing when filters are involved is implemented through "Search" capability,
    because it allows to specify filters.
    
    As "Search" is recursive, and most of servers support it only in the root
    container, use the root container when searching instead of using the current
    container, in order to be able to use those filters.

 src/upnp/grl-upnp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index 1b7f822..ab6883b 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -1237,7 +1237,7 @@ grl_upnp_source_browse (GrlSource *source,
     action =
       gupnp_service_proxy_begin_action (GRL_UPNP_SOURCE (source)->priv->service,
                                         "Search", gupnp_browse_cb, os,
-                                        "ContainerID", G_TYPE_STRING, container_id,
+                                        "ContainerID", G_TYPE_STRING, "0",
                                         "SearchCriteria", G_TYPE_STRING, upnp_browse,
                                         "Filter", G_TYPE_STRING, upnp_filter,
                                         "StartingIndex", G_TYPE_UINT, os->skip,


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