summaryrefslogtreecommitdiff
path: root/player.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-12-17 14:55:49 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-12-17 14:55:49 +0100
commitc77989ee70085be02dca4dc1be362801baa15ff3 (patch)
tree03433d0f032c3657c39384108ad56a1423e9c9a6 /player.c
parent69ecb6a4d8d7eb73bd81f690d8e153a7cc6b882e (diff)
downloadvdr-c77989ee70085be02dca4dc1be362801baa15ff3.tar.gz
vdr-c77989ee70085be02dca4dc1be362801baa15ff3.tar.bz2
Added support for AC3 replay over the DVB device
Diffstat (limited to 'player.c')
-rw-r--r--player.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/player.c b/player.c
index 2b306c0b..80e384fa 100644
--- a/player.c
+++ b/player.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: player.c 1.8 2004/11/20 11:33:08 kls Exp $
+ * $Id: player.c 1.9 2004/12/12 11:21:07 kls Exp $
*/
#include "player.h"
@@ -23,23 +23,14 @@ cPlayer::~cPlayer()
Detach();
}
-int cPlayer::PlayVideo(const uchar *Data, int Length)
+int cPlayer::PlayPes(const uchar *Data, int Length, bool VideoOnly)
{
if (device)
- return device->PlayVideo(Data, Length);
- esyslog("ERROR: attempt to use cPlayer::PlayVideo() without attaching to a cDevice!");
+ return device->PlayPes(Data, Length, VideoOnly);
+ esyslog("ERROR: attempt to use cPlayer::PlayPes() without attaching to a cDevice!");
return -1;
}
-void cPlayer::PlayAudio(const uchar *Data, int Length)
-{
- if (device) {
- device->PlayAudio(Data, Length);
- return;
- }
- esyslog("ERROR: attempt to use cPlayer::PlayAudio() without attaching to a cDevice!");
-}
-
void cPlayer::Detach(void)
{
if (device)