Commit fa537391 authored by Carlos Garnacho's avatar Carlos Garnacho

grilo: Specify upper boundary for duration range filter

Handle grilo#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.
parent 4112d60c
Pipeline #200556 passed with stages
in 17 minutes and 36 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment