diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-05-09 22:45:38 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-05-09 22:45:38 -0400 |
commit | bc23b47dad9aa6e975789a4a6db5117c70d804c0 (patch) | |
tree | bc2c6e8aef05219a284e77dc3fec0919715a9191 /examples | |
parent | 4f0e2d4dd23a837a5eaa6bd7acddfcb1a0af3d21 (diff) | |
download | farstream-bc23b47dad9aa6e975789a4a6db5117c70d804c0.tar.gz |
gui: Ignore elements with no factory
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gui/fs2-gui.py | 2 |
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) |