summaryrefslogtreecommitdiff
path: root/dxr3device.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3device.c')
-rw-r--r--dxr3device.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/dxr3device.c b/dxr3device.c
index ec1d261..a1e3da3 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -181,6 +181,8 @@ bool cDxr3Device::Poll(cPoller &Poller, int TimeoutMs)
//! actually plays the given data block as video
int cDxr3Device::PlayVideo(const uchar *Data, int Length)
{
+ static int i = 0;
+
cDxr3PesFrame frame;
frame.parse(Data, Length);
uint32_t pts = frame.GetPts();
@@ -195,6 +197,15 @@ int cDxr3Device::PlayVideo(const uchar *Data, int Length)
cDxr3Interface::instance()->SetSysClock(vPts);
scrSet = true;
}
+ cDxr3Interface::instance()->PlayVideoFrame(&frame, vPts);
+
+ if (i < 7) {
+ i++;
+ }
+ if (i == 7) {
+ cDxr3Interface::instance()->SetPlayMode();
+ i = 8;
+ }
return Length;
}