matroska: Set image/attachment structure mimetype
authorRafał Dzięgiel <rafostar.github@gmail.com>
Wed, 20 Jan 2021 10:53:51 +0000 (11:53 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 21 Oct 2021 21:42:00 +0000 (21:42 +0000)
Set structure mimetype to fix data detection by mimetype in other plugins.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1205>

subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c

index d83ca12..e2bedc8 100644 (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);