From c06dcccd52a9f37f965d3672b7daa07a6cfded26 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 16 Oct 2009 16:20:36 +0200 Subject: add a basic stuff for StillPicutre in cDxr3Device --- dxr3device.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dxr3device.c b/dxr3device.c index 4cc89b2..309fb16 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -156,7 +156,21 @@ void cDxr3Device::Mute() //! displays the given I-frame as a still picture. void cDxr3Device::StillPicture(const uchar *Data, int Length) { + // clear used buffers of output threads m_DemuxDevice.StillPicture(); + + // we need to check if Data points to a pes + // frame or to non-pes data. This could be the + // case for the radio-Plugin, which points to an + // elementary stream. + cDxr3PesFrame frame; + + if (frame.encode(Data, Length)) { + cDxr3Interface::instance()->PlayVideoFrame(&frame); + + } else { + // TODO + } } // ================================== -- cgit v1.2.3