From 44228422b7c2d3af84272db42b92a164ab564a1e Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Sat, 10 Apr 2010 17:41:32 +0000 Subject: make use of Accessors --- dxr3device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dxr3device.c') diff --git a/dxr3device.c b/dxr3device.c index 81726c6..19af588 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -233,7 +233,7 @@ int cDxr3Device::PlayVideo(const uchar *Data, int Length) cDxr3PesFrame frame; frame.parse(Data, Length); - uint32_t pts = frame.GetPts(); + uint32_t pts = frame.pts(); if (pts == 0) { pts = vPts; @@ -557,8 +557,8 @@ void cDxr3Device::playVideoFrame(cDxr3PesFrame *frame, uint32_t pts) CHECK(ioctl(fdVideo, EM8300_IOCTL_VIDEO_SETPTS, &pts)); } - const uint8_t *data = frame->GetPayload(); - uint32_t len = frame->GetPayloadLength(); + const uint8_t *data = frame->payload(); + uint32_t len = frame->payloadSize(); WriteAllOrNothing(fdVideo, data, len, 1000, 10); } -- cgit v1.2.3