Skip to content

assrender: Fix mimetype detection

Copied from https://gitlab.freedesktop.org//gstreamer/gst-plugins-bad/-/merge_requests/1967

Previously gst_structure_has_name was used to get a string to compare with supported mimetypes. This is incorrect as above function returns a user defined structure name which is not the structure mimetype value.

Up until now assrender compared string containing the mimetype with GstTagImageInfo string and failed each time.

I also moved the filename existence check before the array iterations, as there is no point spending time on iterating and comparing strings if we are going to reject the value due to missing filename anyway.

Depends on: !1205 (merged)

Edited by Rafał Dzięgiel

Merge request reports