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