diff options
-rw-r--r-- | dxr3device.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 + } } // ================================== |