Skip to content
Commit 47b13910 authored by Ignacy Kuchciński's avatar Ignacy Kuchciński Committed by Carlos Garnacho
Browse files

tracker-extract: ignore subtrack titles for videos

Currently, the resulting nie:title includes titles from the individual
tracks due to both gstreamer not differentiating between
global/container tags and track tags until introducing
gst_discoverer_container_info_get_tags() as new API and tracker-extract
gstreamer backend looping through available tracks and collecting all
tags it could find.

As a result, in cases where there is no title tag in the container, but
there are some title tags in subtitle or audio tracks, they are included
in the nie:title and prevent the file name based fallback title in grilo
and cause the video to show up with nonsense titles in totem.

To fix this, replace gst_discoverer_info_get_tags() with the new API,
and ignore title tags from subtracks if the file is a video.

Fixes https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/202
parent 7030fa7b
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