diff options
author | Marinus Schraal <mschraal@gnome.org> | 2020-08-24 16:59:00 +0200 |
---|---|---|
committer | Victor Toso <me@victortoso.com> | 2020-09-02 06:48:18 +0000 |
commit | 8b2fac6924a2d9cfcf741e682761c30846ea73c7 (patch) | |
tree | 2b05b335fcde3a2beaafe0ba768f8a06bf3fcc4c | |
parent | fd78f5e3276fcfc28c434ffe46fe07257cc692a2 (diff) | |
download | grilo-plugins-8b2fac6924a2d9cfcf741e682761c30846ea73c7.tar.gz |
tracker3: Set container type for media
Queries can return container types (eg. playlists) and not setting the
media type will result in critical warnings.
-rw-r--r-- | src/tracker3/grl-tracker-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tracker3/grl-tracker-utils.c b/src/tracker3/grl-tracker-utils.c index 37b0e81..ca45249 100644 --- a/src/tracker3/grl-tracker-utils.c +++ b/src/tracker3/grl-tracker-utils.c @@ -442,6 +442,8 @@ grl_tracker_build_grilo_media (GrlMediaType type) media = grl_media_video_new (); } else if (type == GRL_MEDIA_TYPE_IMAGE) { media = grl_media_image_new (); + } else if (type == GRL_MEDIA_TYPE_CONTAINER) { + media = grl_media_container_new (); } if (!media) |