summaryrefslogtreecommitdiff
path: root/dxr3device.c
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2005-01-12 00:02:59 +0000
committeraustriancoder <austriancoder>2005-01-12 00:02:59 +0000
commit91f6be9d3d086bed0d7b848450f2b46c7b972ab6 (patch)
treeb18e3311fb355b42b5a566a3ebff5fc1656d2ed2 /dxr3device.c
parent29151c66e8ec19ada7e204a3e6adf5069c5e741f (diff)
downloadvdr-plugin-dxr3-91f6be9d3d086bed0d7b848450f2b46c7b972ab6.tar.gz
vdr-plugin-dxr3-91f6be9d3d086bed0d7b848450f2b46c7b972ab6.tar.bz2
added support for vdr-1.3.18
Diffstat (limited to 'dxr3device.c')
-rw-r--r--dxr3device.c22
1 files changed, 19 insertions, 3 deletions
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