mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
1b036156af
Using from gst import ges did not make much sense
24 lines
638 B
Python
24 lines
638 B
Python
import gst
|
|
|
|
from common import TestCase
|
|
import ges
|
|
|
|
class Track(TestCase):
|
|
|
|
def testTrack(self):
|
|
tck = ges.track_video_raw_new()
|
|
tl = ges.Timeline()
|
|
lyr = ges.TimelineLayer()
|
|
src = ges.TimelineTestSource()
|
|
caps = gst.caps_from_string("image/jpeg")
|
|
obj = ges.TrackParseLaunchEffect ("agingtv")
|
|
|
|
tl.add_layer(lyr)
|
|
src.add_track_object(obj)
|
|
lyr.add_object(src)
|
|
tck.set_timeline(tl)
|
|
|
|
assert (tck.add_object(obj) == True)
|
|
assert (tck.get_timeline() == tl)
|
|
tck.set_caps(caps)
|
|
assert (tck.get_caps().to_string() == "image/jpeg")
|