summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-05-09 22:45:38 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-05-09 22:45:38 -0400
commitbc23b47dad9aa6e975789a4a6db5117c70d804c0 (patch)
treebc2c6e8aef05219a284e77dc3fec0919715a9191 /examples
parent4f0e2d4dd23a837a5eaa6bd7acddfcb1a0af3d21 (diff)
downloadfarstream-bc23b47dad9aa6e975789a4a6db5117c70d804c0.tar.gz
gui: Ignore elements with no factory
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gui/fs2-gui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/gui/fs2-gui.py b/examples/gui/fs2-gui.py
index a2349664..89905520 100755
--- a/examples/gui/fs2-gui.py
+++ b/examples/gui/fs2-gui.py
@@ -244,6 +244,8 @@ class FsUIPipeline:
convert1.set_state(gst.STATE_PLAYING)
def element_added_cb(self, notifier, bin, element):
+ if not element.get_factory():
+ return
if element.get_factory().get_name() == "x264enc":
element.set_property("byte-stream", True)
element.set_property("bitrate", 128)