summaryrefslogtreecommitdiff
path: root/player.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-11-03 11:53:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-11-03 11:53:58 +0100
commit0a517afdf8c4824d2961c477bda753ca81e800db (patch)
tree6b65f2e9fb1adabc297e3d700608c1f915fc15cf /player.c
parent2e26a1d607b45bff095e93649d830cf7146be5f1 (diff)
downloadvdr-0a517afdf8c4824d2961c477bda753ca81e800db.tar.gz
vdr-0a517afdf8c4824d2961c477bda753ca81e800db.tar.bz2
Implemented audio plugin interface
Diffstat (limited to 'player.c')
-rw-r--r--player.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/player.c b/player.c
index 3eecc2d4..a88c5010 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.5 2002/08/15 10:29:17 kls Exp $
+ * $Id: player.c 1.6 2002/11/02 14:55:37 kls Exp $
*/
#include "player.h"
@@ -31,12 +31,13 @@ int cPlayer::PlayVideo(const uchar *Data, int Length)
return -1;
}
-int cPlayer::PlayAudio(const uchar *Data, int Length)
+void cPlayer::PlayAudio(const uchar *Data, int Length)
{
- if (device)
- return device->PlayAudio(Data, Length);
+ if (device) {
+ device->PlayAudio(Data, Length);
+ return;
+ }
esyslog("ERROR: attempt to use cPlayer::PlayAudio() without attaching to a cDevice!");
- return -1;
}
void cPlayer::Detach(void)