[gnac/devel] Fixed a bug in the support for missing plugin installation
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Fixed a bug in the support for missing plugin installation
- Date: Thu, 20 May 2010 01:04:09 +0000 (UTC)
commit 7aa60bc32e3380a9fdcfddae9f024b33d457ef3c
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date: Thu May 20 01:44:08 2010 +0100
Fixed a bug in the support for missing plugin installation
libgnac/libgnac-media-item.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libgnac/libgnac-media-item.c b/libgnac/libgnac-media-item.c
index c6250e2..e27c44e 100644
--- a/libgnac/libgnac-media-item.c
+++ b/libgnac/libgnac-media-item.c
@@ -102,17 +102,18 @@ libgnac_item_build(LibgnacMediaItem *item,
if (err) {
if (g_error_matches(err, LIBGNAC_ERROR, LIBGNAC_ERROR_MISSING_PLUGIN))
{
- gchar *details;
+ gchar *detail;
GstMessage *msg;
msg = gst_missing_element_message_new(item->pipeline, err->message);
g_return_if_fail(msg);
- details = gst_missing_plugin_message_get_installer_detail(msg);
+ detail = gst_missing_plugin_message_get_installer_detail(msg);
gst_message_unref(msg);
- if (details) {
+ if (detail) {
GstInstallPluginsReturn ret;
- ret = gst_install_plugins_async(&details, NULL,
+ gchar *details[] = { detail, NULL };
+ ret = gst_install_plugins_async(details, NULL,
libgnac_converter_missing_plugin_result_cb, item->parent);
- g_free(details);
+ g_free(detail);
if (ret != GST_INSTALL_PLUGINS_STARTED_OK) {
libgnac_warning("Could not launch installer for required plugins");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]