[Rendering] Recover properly from errors
@bilboed
Submitted by Edward Hervey Assigned to Edward Hervey @bilboed
Description
When an error happens in rendering (exception being raised for ex), a lot of issues happen after that when trying to close the rendering window.
Ex :
Traceback (most recent call last):
File "/home/bilboed/work/cvs/pitivi/pitivi/ui/mainwindow.py", line 439, in _cancelButtonClickedCb
self.bin.stopRecording()
File "/home/bilboed/work/cvs/pitivi/pitivi/bin.py", line 238, in stopRecording
self.getRealVideoSink().set_property("sync", True)
AttributeError: 'NoneType' object has no attribute 'set_property'
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=433537