Commit 8b2fac69 authored by Marinus Schraal's avatar Marinus Schraal Committed by Victor Toso
Browse files

tracker3: Set container type for media

Queries can return container types (eg. playlists) and not setting the
media type will result in critical warnings.
parent fd78f5e3
Pipeline #209857 passed with stage
in 9 minutes and 22 seconds
......@@ -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)
......
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