gst-inspect: Enhance auto-install-info output for De/Encryptor class

Without this it is not possible to lookup which plugin handles a specific
encrypted mimetype (e.g. application/x-cenc or application/x-aavd).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1604>
This commit is contained in:
Stefan Brüns 2022-01-29 19:36:16 +01:00 committed by GStreamer Marge Bot
parent 35f1738875
commit fb076db1b2

View file

@ -1884,11 +1884,13 @@ print_plugin_automatic_install_info_codecs (GstElementFactory * factory)
if (strstr (klass, "Demuxer") ||
strstr (klass, "Decoder") ||
strstr (klass, "Decryptor") ||
strstr (klass, "Depay") || strstr (klass, "Parser")) {
type_name = "decoder";
direction = GST_PAD_SINK;
} else if (strstr (klass, "Muxer") ||
strstr (klass, "Encoder") || strstr (klass, "Pay")) {
strstr (klass, "Encoder") ||
strstr (klass, "Encryptor") || strstr (klass, "Pay")) {
type_name = "encoder";
direction = GST_PAD_SRC;
} else {