matroska: Set image/attachment structure mimetype

Set structure mimetype to fix data detection by mimetype in other plugins.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1205>
This commit is contained in:
Rafał Dzięgiel 2021-01-20 11:53:51 +01:00 committed by GStreamer Marge Bot
parent 0ba65a00c9
commit b57a7c3de7

View file

@ -857,6 +857,7 @@ gst_matroska_read_common_parse_attached_file (GstMatroskaReadCommon * common,
info = gst_structure_new_empty (structure_name);
}
gst_structure_set (info, "filename", G_TYPE_STRING, filename, NULL);
gst_structure_set (info, "mimetype", G_TYPE_STRING, mimetype, NULL);
if (description)
gst_structure_set (info, "description", G_TYPE_STRING, description, NULL);