After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 424228 - regression, cannot add a clip to the timeline
regression, cannot add a clip to the timeline
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: General
Git
Other Linux
: Normal major
: 0.10.3
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-29 19:07 UTC by Jean-François Fortin Tam
Modified: 2007-03-31 18:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2007-03-29 19:07:33 UTC
When trying to add a clip in a timeline:

Traceback (most recent call last):
  • File "pitivi/ui/timelineobjects.py", line 326 in _dragDataReceivedCb
    self._gotFileFactory(instance.PiTiVi.current.sources[uri], x, y)
  • File "pitivi/ui/timelineobjects.py", line 262 in _gotFileFactory
    name=filefactory.name)
  • File "pitivi/timeline/source.py", line 58 in __init__
    self.setMediaStartDurationTime(media_start, media_duration)
  • File "pitivi/timeline/source.py", line 112 in setMediaStartDurationTime
    self._setMediaStartDurationTime(start, duration)
  • File "pitivi/timeline/source.py", line 103 in _setMediaStartDurationTime
    if not duration == -1 and not self.media_duration == duration:
AttributeError: 'TimelineFileSource' object has no attribute 'media_duration'

Comment 1 Edward Hervey 2007-03-31 18:06:16 UTC
2007-03-31  Edward Hervey  <edward@fluendo.com>

	* pitivi/timeline/source.py:
	Set initial values for TimelineSource media_start and media_duration
	* tests/common.py:
	New TimelineFileSource and FileSourceFactory test objects
	* tests/test_timeline_source.py:
	Test some behaviour of TimelineFileSource
	Fixes #424228