Skip to content

Commit

Permalink
Chnaged structure of testsource
Browse files Browse the repository at this point in the history
  • Loading branch information
hyades committed Aug 7, 2013
1 parent 768a2e6 commit d463609
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 4 additions & 1 deletion python-api/gstswitch/test_testsource.py
Expand Up @@ -151,4 +151,7 @@ def test_normal(self):
assert src.clockoverlay == test


# class TestVideoSrc
class TestVideoSrcRun(object):

def function():
pass
17 changes: 8 additions & 9 deletions python-api/gstswitch/testsource.py
Expand Up @@ -247,6 +247,14 @@ def __init__(
self.pattern = self.generate_pattern(pattern)
self.timeoverlay = timeoverlay
self.clockoverlay = clockoverlay
self.pipeline = VideoPipeline(
self.port,
self.HOST,
self.width,
self.height,
self.pattern,
self.timeoverlay,
self.clockoverlay)

@property
def port(self):
Expand Down Expand Up @@ -351,15 +359,6 @@ def clockoverlay(self, clockoverlay):

def run(self):
"""Run the pipeline"""
self.pipeline = VideoPipeline(
self.port,
self.HOST,
self.width,
self.height,
self.pattern,
self.timeoverlay,
self.clockoverlay)

self.pipeline.play()

def pause(self):
Expand Down

0 comments on commit d463609

Please sign in to comment.