GNOME Bugzilla – Bug 470456
[API] add gst_missing_*_installer_detail_new()
Last modified: 2007-08-28 14:27:53 UTC
In Thoggen I know exactly what desirable plugins are missing (e.g. ffdeinterlace) and want to call the external installer to have them installed. With the current API I need to first create a dummy GstElement, then a dummy GstMessage, then get the installer detail string from the message, then unref message and element and then call the installer with the installer detail string retrieved.
This would be much easier if we could create installer detail strings directly, ie:
gchar * gst_missing_uri_source_installer_detail_new (const gchar * protocol);
gchar * gst_missing_uri_sink_installer_detail_new (const gchar * protocol);
gchar * gst_missing_element_installer_detail_new (const gchar * factory_name);
gchar * gst_missing_decoder_installer_detail_new (const GstCaps * decode_caps);
gchar * gst_missing_encoder_installer_detail_new (const GstCaps * encode_caps);
The attached patch adds API, documentation and unit tests for that.
Created attachment 94376 [details] [review]
proposed API addition with docs and unit test
Yes yes, and first check if the platform has a plugin-installer backend.
Committed after discussion on IRC:
2007-08-28 Tim-Philipp Müller <tim at centricular dot net>
API: add gst_missing_*_installer_detail_new() convenience API so
that applications that know exactly what they're missing can request
installer detail strings for those items directly instead of having
to first create a dummy missing-plugin message and then get the
installer detail string from that. Fixes #470456.