From 91f6be9d3d086bed0d7b848450f2b46c7b972ab6 Mon Sep 17 00:00:00 2001 From: austriancoder Date: Wed, 12 Jan 2005 00:02:59 +0000 Subject: added support for vdr-1.3.18 --- dxr3device.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'dxr3device.c') diff --git a/dxr3device.c b/dxr3device.c index 54f1271..6169ece 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -338,10 +338,17 @@ int cDxr3Device::PlayVideo(const uchar *Data, int Length) // ================================== // plays additional audio streams, like Dolby Digital -void cDxr3Device::PlayAudio(const uchar *Data, int Length) +#if VDRVERSNUM >= 10318 + int PlayAudio(const uchar *Data, int Length) +#else + void PlayAudio(const uchar *Data, int Length) +#endif { int retLength = 0; - +#if VDRVERSNUM >= 10318 + int origLength = Length; +#endif + #if VDRVERSNUM < 10307 if (!m_AC3Present) { @@ -355,7 +362,12 @@ void cDxr3Device::PlayAudio(const uchar *Data, int Length) m_DemuxDevice.GetTrickState() == DXR3_FREEZE) || cDxr3Interface::Instance().IsExternalReleased()) { //usleep(1000000); - return; + +#if VDRVERSNUM >= 10318 + return 0; +#else + return; +#endif } if (m_strBuf.length()) @@ -381,6 +393,10 @@ void cDxr3Device::PlayAudio(const uchar *Data, int Length) m_strBuf.append((const char*)(Data + retLength), Length); } } + +#if VDRVERSNUM >= 10318 + return origLength; +#endif } // addition functions -- cgit v1.2.3