1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 from flumotion.common import gstreamer, messages
19 from flumotion.common.i18n import N_, gettexter
20 from flumotion.worker.checks import check
21 from flumotion.component import feedcomponent
22
23
24 T_ = gettexter()
25
26
27 -class Dirac(feedcomponent.EncoderComponent):
28 checkTimestamp = True
29 checkOffset = True
30
32 d = check.do_check(self, check.checkPlugin, 'schro', 'gst-plugins-bad')
33
34 def check_schroenc_bug(result, component):
35 if gstreamer.get_plugin_version('schro') == (1, 0, 7, 0):
36 m = messages.Warning(
37 T_(N_("Version %s of the '%s' GStreamer plug-in "
38 "contains a bug.\n"), '1.0.7', 'schroenc'))
39 m.add(T_(N_("The downstream components might stay hungry.\n")))
40 m.add(T_(N_("The bug has been fixed during the transition of "
41 "'%s' to the '%s' plug-ins set. "
42 "Please upgrade '%s' to version %s, "
43 "which contains the fixed plug-in."),
44 'schroenc', 'gst-plugins-bad', 'schroenc', '0.10.14'))
45 component.addMessage(m)
46 return result
47 return d.addCallback(check_schroenc_bug, self)
48
50 return "ffmpegcolorspace ! schroenc name=encoder"
51
59