diff options
author | Bastien Nocera <hadess@hadess.net> | 2015-08-05 11:37:46 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2015-08-24 17:26:50 +0200 |
commit | 25af60ea31d093ff70fbae49de75c7e9d28076d6 (patch) | |
tree | 405675f0e28787839a73e6c74ef6ac49ded4da15 | |
parent | 6051dd76ac5e1738e00cbb677aeadea32e3df3be (diff) | |
download | totem-25af60ea31d093ff70fbae49de75c7e9d28076d6.tar.gz |
grilo: MAX_DURATION of 5 seconds? Nope
We want films with a minimum length of 5 seconds, not a maximum length
of 5 seconds.
-rw-r--r-- | src/totem-grilo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c index fb760cfc7..b16fd8712 100644 --- a/src/totem-grilo.c +++ b/src/totem-grilo.c @@ -52,7 +52,7 @@ #define BROWSE_FLAGS (GRL_RESOLVE_FAST_ONLY | GRL_RESOLVE_IDLE_RELAY) #define PAGE_SIZE 50 #define SCROLL_GET_MORE_LIMIT 0.8 -#define MAX_DURATION 5 +#define MIN_DURATION 5 /* casts are to shut gcc up */ static const GtkTargetEntry target_table[] = { @@ -743,7 +743,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, MAX_DURATION, NULL, + GRL_METADATA_KEY_DURATION, MIN_DURATION, NULL, NULL); bud = g_slice_new0 (BrowseUserData); @@ -848,7 +848,7 @@ get_search_options (TotemGrilo *self) grl_operation_options_set_count (default_options, PAGE_SIZE); grl_operation_options_set_type_filter (default_options, GRL_TYPE_FILTER_VIDEO); grl_operation_options_set_key_range_filter (default_options, - GRL_METADATA_KEY_DURATION, MAX_DURATION, NULL, + GRL_METADATA_KEY_DURATION, MIN_DURATION, NULL, NULL); /* And now remove all the unsupported filters and options */ |