[grilo] Use autosplit only if user is requesting more elements than autosplit threshold



commit 6887f041e9807581903b48651d75b884a1e6ea9d
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Wed May 12 11:49:06 2010 +0200

    Use autosplit only if user is requesting more elements than autosplit threshold

 src/grl-media-source.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index 99698a4..72ee3ef 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -1201,7 +1201,8 @@ grl_media_source_browse (GrlMediaSource *source,
   brc->bspec = bs;
 
   /* Setup auto-split management if requested */
-  if (source->priv->auto_split_threshold > 0) {
+  if (source->priv->auto_split_threshold > 0 &&
+      count > source->priv->auto_split_threshold) {
     g_debug ("auto-split: enabled");
     struct AutoSplitCtl *as_ctl = g_new0 (struct AutoSplitCtl, 1);
     as_ctl->count = count;



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