[grilo-plugins/wip/mschraal/tracker3-set-container-type: 3/3] tracker3: Set container type for media




commit df2956021e574a6ebdc970b748c376a103969514
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Aug 24 16:59:00 2020 +0200

    tracker3: Set container type for media
    
    Queries can return container types (eg. playlists) and not setting the
    media type will result in critical warnings.

 src/tracker3/grl-tracker-utils.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/tracker3/grl-tracker-utils.c b/src/tracker3/grl-tracker-utils.c
index 9680da9c..0caeb37b 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]