[PATCH] on fedora, installing gstreamer-plugins-entrans causes pitivi to fail to start
@crobinso
Submitted by Cole Robinson Assigned to Cole Robinson @crobinso
Description
Created attachment 208708
Ignore unknown stream types at startup
On fedora 16, if I have the gstreamer-plugins-entrans package installed, pitivi from git fails to start:
Traceback (most recent call last):
File "./installdir/bin/pitivi", line 134, in <module>
_run_pitivi()
File "./installdir/bin/pitivi", line 129, in _run_pitivi
sys.exit(ptv.main(sys.argv))
File "pitivi/application.py", line 514, in main
ptv = StartupWizardGuiPitivi(debug=options.debug)
File "pitivi/application.py", line 371, in init
FullGuiPitivi.init(self, debug)
File "pitivi/application.py", line 264, in init
InteractivePitivi.init(self, debug)
File "pitivi/application.py", line 212, in init
Pitivi.init(self)
File "pitivi/application.py", line 128, in init
self.effects = EffectsHandler()
File "pitivi/effects.py", line 123, in init
self._setAllEffects()
File "pitivi/effects.py", line 141, in _setAllEffects
added = self.addStreams(element_factory, effect)
File "pitivi/effects.py", line 189, in addStreams
stream = get_stream_for_pad(pad)
File "pitivi/stream.py", line 373, in get_stream_for_pad
stream.pad_id = pad_id
AttributeError: 'NoneType' object has no attribute 'pad_id'
The problem is that the entrans package causes pitivi to see a stream with
stream_type == "application", which get_stream_for_caps doesn't explicitly
handle.
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=671079