[totem/wip/hadess/missing-plugins-info: 2/2] backend: Always print out missing plugins information
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/missing-plugins-info: 2/2] backend: Always print out missing plugins information
- Date: Sat, 28 Sep 2019 13:20:27 +0000 (UTC)
commit 3835e9e04d1e053d564695375eb6565158d7b12b
Author: Bastien Nocera <hadess hadess net>
Date: Sat Sep 28 15:15:22 2019 +0200
backend: Always print out missing plugins information
src/backend/bacon-video-widget-gst-missing-plugins.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-missing-plugins.c
b/src/backend/bacon-video-widget-gst-missing-plugins.c
index 79476927a..f1f77a4e9 100644
--- a/src/backend/bacon-video-widget-gst-missing-plugins.c
+++ b/src/backend/bacon-video-widget-gst-missing-plugins.c
@@ -27,8 +27,6 @@
#define GST_USE_UNSTABLE_API 1
#include <gst/gst.h> /* for gst_registry_update and functions in
bacon_video_widget_gst_missing_plugins_blacklist */
-#ifdef ENABLE_MISSING_PLUGIN_INSTALLATION
-
#include "bacon-video-widget.h"
#include <gst/pbutils/pbutils.h>
@@ -385,6 +383,7 @@ bacon_video_widget_gst_on_missing_plugins_event (BaconVideoWidget *bvw,
return FALSE;
}
+#ifdef ENABLE_MISSING_PLUGIN_INSTALLATION
/* Get the PackageKit session interface proxy and continue with the
* codec installation in the callback */
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
@@ -396,6 +395,9 @@ bacon_video_widget_gst_on_missing_plugins_event (BaconVideoWidget *bvw,
g_object_get_data (G_OBJECT (bvw), "missing-plugins-cancellable"),
on_packagekit_proxy_ready,
ctx);
+#else /* ENABLE_MISSING_PLUGIN_INSTALLATION */
+ bacon_video_widget_gst_codec_install_context_free (ctx);
+#endif
/* if we managed to start playing, pause playback, since some install
* wizard should now take over in a second anyway and the user might not
@@ -406,12 +408,9 @@ bacon_video_widget_gst_on_missing_plugins_event (BaconVideoWidget *bvw,
return TRUE;
}
-#endif /* ENABLE_MISSING_PLUGIN_INSTALLATION */
-
void
bacon_video_widget_gst_missing_plugins_setup (BaconVideoWidget *bvw)
{
-#ifdef ENABLE_MISSING_PLUGIN_INSTALLATION
g_signal_connect (G_OBJECT (bvw),
"missing-plugins",
G_CALLBACK (bacon_video_widget_gst_on_missing_plugins_event),
@@ -420,7 +419,6 @@ bacon_video_widget_gst_missing_plugins_setup (BaconVideoWidget *bvw)
gst_pb_utils_init ();
GST_INFO ("Set up support for automatic missing plugin installation");
-#endif
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]