plugin: importers: Support different template and actual caps

Make a template caps during class_init. It will be used for e.g. gst-inspect-1.0, while do and use an actual caps that current HW can handle.
This commit is contained in:
Rafał Dzięgiel
2022-05-25 20:30:56 +02:00
parent 5b89879031
commit 3f7ba0674f
7 changed files with 47 additions and 30 deletions

View File

@@ -42,6 +42,8 @@ GstClapperImporterLoader * gst_clapper_importer_loader_new
GstPadTemplate * gst_clapper_importer_loader_make_sink_pad_template (void);
GstCaps * gst_clapper_importer_loader_make_actual_caps (GstClapperImporterLoader *loader);
gboolean gst_clapper_importer_loader_find_importer_for_caps (GstClapperImporterLoader *loader, GstCaps *caps, GstClapperImporter **importer);
gboolean gst_clapper_importer_loader_find_importer_for_context_query (GstClapperImporterLoader *loader, GstQuery *query, GstClapperImporter **importer);