1
Vendor: http://github.com/danielgtaylor/arista/commit/c997b075480db20bf5fefbca8331b2f20a0c0a7b
2
Description: Log some extra information while attempting to automagically
3
install missing plugins.
5
arista/presets.py | 9 ++++++++-
6
1 file changed, 8 insertions(+), 1 deletion(-)
8
--- arista-0.9.3+repack.orig/arista/presets.py
9
+++ arista-0.9.3+repack/arista/presets.py
10
@@ -228,13 +228,18 @@ class Preset(object):
15
for element in elements:
16
if not gst.element_factory_find(element):
17
missing.append(gst.pbutils.missing_element_installer_detail_new(element))
19
+ missingdesc += ", %s" % element
21
+ missingdesc += element
24
+ _log.info("Attempting to install elements: %s" % missingdesc)
25
if gst.pbutils.install_plugins_supported():
27
def install_done(result, null):
28
if result == gst.pbutils.INSTALL_PLUGINS_INSTALL_IN_PROGRESS:
29
# Ignore start of installer message
30
@@ -242,12 +247,14 @@ class Preset(object):
31
elif result == gst.pbutils.INSTALL_PLUGINS_SUCCESS:
32
callback(self, True, *args)
34
+ _log.error("Unable to install required elements!")
35
callback(self, False, *args)
37
context = gst.pbutils.InstallPluginsContext()
38
gst.pbutils.install_plugins_async(missing, context,
41
+ _log.error("Installing elements not supported!")
42
gobject.idle_add(callback, self, False, *args)
44
gobject.idle_add(callback, self, True, *args)