[PATCH] upnp: use given 'skip' parameter in browse/search/query



---
 src/upnp/grl-upnp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index c831cf8..0789fee 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -1098,7 +1098,7 @@ grl_upnp_source_browse (GrlMediaSource *source, GrlMediaSourceBrowseSpec *bs)
 				      "Filter", G_TYPE_STRING,
                                       upnp_filter,
 				      "StartingIndex", G_TYPE_UINT,
-                                      0,
+                                      bs->skip,
 				      "RequestedCount", G_TYPE_UINT,
                                       bs->count,
 				      "SortCriteria", G_TYPE_STRING,
@@ -1152,7 +1152,7 @@ grl_upnp_source_search (GrlMediaSource *source, GrlMediaSourceSearchSpec *ss)
 				      "Filter", G_TYPE_STRING,
                                       upnp_filter,
 				      "StartingIndex", G_TYPE_UINT,
-                                      0,
+                                      ss->skip,
 				      "RequestedCount", G_TYPE_UINT,
                                       ss->count,
 				      "SortCriteria", G_TYPE_STRING,
@@ -1214,7 +1214,7 @@ grl_upnp_source_query (GrlMediaSource *source, GrlMediaSourceQuerySpec *qs)
 				      "Filter", G_TYPE_STRING,
 				      upnp_filter,
 				      "StartingIndex", G_TYPE_UINT,
-				      0,
+				      qs->skip,
 				      "RequestedCount", G_TYPE_UINT,
 				      qs->count,
 				      "SortCriteria", G_TYPE_STRING,
-- 
1.7.2.3



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