[grilo-plugins] flickr: Set autosplit threshold
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] flickr: Set autosplit threshold
- Date: Wed, 23 Jun 2010 17:53:16 +0000 (UTC)
commit 246eba390d10d35ee0253bd1bc09e53b9c37dbf2
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Thu Jun 17 17:02:37 2010 +0200
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]