Doesn't load relative filenames
@hadess
Submitted by Bastien Nocera Assigned to Brandon Lewis @brandon_lewis
Description
$ pitivi Video1.MOV
Traceback (most recent call last):
File "/usr/share/pitivi/python/pitivi/ui/ruler.py", line 123, in do_expose_event
self.drawPosition(context, self.get_allocation())
File "/usr/share/pitivi/python/pitivi/ui/ruler.py", line 319, in drawPosition
if self.getDuration() <= 0:
File "/usr/share/pitivi/python/pitivi/ui/ruler.py", line 218, in getDuration
return instance.PiTiVi.current.timeline.getDuration()
AttributeError: 'NoneType' object has no attribute 'timeline'
And the error:
PiTiVi is unable to load file "file://Video1.MOV": There was an error loading the file.
The file should have been file:///home/hadess/Video1.MOV.
Use the g_file_new_for_commandline_arg() and g_file_get_uri() bindings to get the full URI.
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=557575