Dragging an SVG to the timeline fails
@chris
Submitted by b'Chris Ball' Assigned to b'Chris Ball' @chris
Description
Hi,
When I drag a movie from the clip library to the timeline, _padEventCb() fires and sets self.pending_newsegment to something useful.
When I drag a static SVG file from the clip library to the timeline, _padEventCb() is not called for some reason, and so self.pending_newsegment is not set to anything other than the "False" value that it was initialized with. We then see various tracebacks including:
Traceback (most recent call last):
File "pitivi/elements/singledecodebin.py", line 322, in _padBlockedCb
self._srcpad.push_event(self.pending_newsegment)
TypeError: GstPad.push_event() argument 1 must be gst.Event, not bool
Traceback (most recent call last):
File "pitivi/timeline/track.py", line 991, in _videoInputPriorityChangedCb
mixer.update_priority(pad, priority)
File "pitivi/elements/mixer.py", line 148, in update_priority
a,b,c,sinkpad = self.inputs[pad.get_name()]
AttributeError: 'NoneType' object has no attribute 'get_name'
ERROR [25178] [0x7faad9055700] "<Pipeline at 0x2336450>
" pipeline Mar 25 17:23:33 _errorObject: error from /GnlSource:gnlsource: VideoTestSourceFactory47/GstBin:bin49/GstVideoTestSrc:videotestsrc19 (main.GstVideoTestSrc): GStreamer encountered a general stream error. (gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstBin:bin0/GnlComposition:gnlcomposition0/GnlSource:gnlsource: VideoTestSourceFactory47/GstBin:bin49/GstVideoTestSrc:videotestsrc19:
streaming task paused, reason not-linked (-1)) (pitivi/log/loggable.py:30)
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=613960