[grilo/fremantle] core: Don't add auto split if less count are requested in browse
- From: Xabier Rodriguez Calvar <xrcalvar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/fremantle] core: Don't add auto split if less count are requested in browse
- Date: Thu, 24 Jun 2010 11:27:02 +0000 (UTC)
commit 09ebd5476f94dce33fe0824a5ec1a0aa13eb5b4a
Author: Xabier Rodriguez Calvar <xrcalvar igalia com>
Date: Thu Jun 24 12:53:35 2010 +0200
core: Don't add auto split if less count are requested in browse
This is the same we do for query and search.
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 fce0c95..97390f1 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -1204,7 +1204,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]