[PATCH 1/4] [flickr] Set autosplit threshold



Limit values to maximum values requested in a search.
---
 src/flickr/grl-flickr.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/flickr/grl-flickr.c b/src/flickr/grl-flickr.c
index ac97b7c..d3573cb 100644
--- a/src/flickr/grl-flickr.c
+++ b/src/flickr/grl-flickr.c
@@ -43,6 +43,8 @@
 #undef G_LOG_DOMAIN
 #define G_LOG_DOMAIN "grl-flickr"
 
+#define SEARCH_MAX  500
+
 /* --- Plugin information --- */
 
 #define PLUGIN_ID   "grl-flickr"
@@ -169,6 +171,9 @@ static void
 grl_flickr_source_init (GrlFlickrSource *source)
 {
   source->priv = GRL_FLICKR_SOURCE_GET_PRIVATE (source);
+
+  grl_media_source_set_auto_split_threshold (GRL_MEDIA_SOURCE (source),
+                                             SEARCH_MAX);
 }
 
 G_DEFINE_TYPE (GrlFlickrSource, grl_flickr_source, GRL_TYPE_MEDIA_SOURCE);
-- 
1.7.0.4



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