stbt.py: put sink_bin back to PLAYING state after restarting source_bin
stbt.py: put sink_bin back to PLAYING state after restarting source_bin

to avoid a bug where Blackmagic Intensity Pro video capture cards
stop delivering timestamp information after the pipeline is restarted.

Since b6135eca the source pipeline is restarted whenever video signal is
lost to resolve the HD PVR bug that the device stops delivering video
when it loses input signal momentarily. Unfortunately, the recovery
procedure introduced a problem that the Blackmagic card stops delivering
the video timestamp in each video frame after the source bin is
restarted, even though it does continue to deliver video frames, as it
can be seen in this log snippet:

"Weak match found: MatchResult(timestamp=0L, match=False,
position=Position(x=247L, y=382L), first_pass_result=0.6553829610347748)"

Because stb-tester's timeouts are based on the stream timestamp,
not on clock time, "stbt run" hangs forever.

After some experimentation it has turned out that timestamps are lost
because sink_bin is set to STATE_READY but not set explicitly back to
STATE_PLAYING after source_bin is restarted.

We've tested powering on/off the system-under-test and the pipeline can
succesfully recover using both Blackmagic and HD PVR devices.

Signed-off-by: Mate Szendro <70ef5ae0bbb1aaaec4bbbd9af6e4df4e6a56b055@youview.com>

wmanley/stb-tester,martynjarvis/stb-tester,LewisHaley/stb-tester,stb-tester/stb-tester,martynjarvis/stb-tester,martynjarvis/stb-tester,stb-tester/stb-tester,martynjarvis/stb-tester,stb-tester/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,wmanley/stb-tester,wmanley/stb-tester,martynjarvis/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,martynjarvis/stb-tester,wmanley/stb-tester,stb-tester/stb-tester,martynjarvis/stb-tester,LewisHaley/stb-tester,wmanley/stb-tester