summaryrefslogtreecommitdiff
path: root/src/totem-grilo.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-06-14 20:48:45 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-07-31 11:33:57 +0000
commitfa537391bf40712e57199c6bfca3a62cb28ea04a (patch)
tree16bc3cee4f1e3354c293ed54774018d7011de3fb /src/totem-grilo.c
parent4112d60c18dab03c9f7df9fa5368d99c806bc3ed (diff)
downloadtotem-fa537391bf40712e57199c6bfca3a62cb28ea04a.tar.gz
grilo: Specify upper boundary for duration range filter
Handle https://gitlab.gnome.org/GNOME/grilo/-/issues/140 locally and specify an upper range that does not translate to 0. This will be necessary for the tracker3 grilo source, as it doesn't try to interpret what that 0 means.
Diffstat (limited to 'src/totem-grilo.c')
-rw-r--r--src/totem-grilo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index a7f06b60c..7a63bad59 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -53,6 +53,7 @@
#define PAGE_SIZE 50
#define SCROLL_GET_MORE_LIMIT 0.8
#define MIN_DURATION 5
+#define MAX_DURATION G_MAXINT
/* casts are to shut gcc up */
static const GtkTargetEntry target_table[] = {
@@ -752,7 +753,7 @@ browse (TotemGrilo *self,
grl_operation_options_set_type_filter (default_options, GRL_TYPE_FILTER_VIDEO);
if (grl_caps_is_key_range_filter (caps, GRL_METADATA_KEY_DURATION))
grl_operation_options_set_key_range_filter (default_options,
- GRL_METADATA_KEY_DURATION, MIN_DURATION, NULL,
+ GRL_METADATA_KEY_DURATION, MIN_DURATION, MAX_DURATION,
NULL);
bud = g_slice_new0 (BrowseUserData);