summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-06 16:19:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-06 16:19:20 +0200
commitc19ad04a214169430f2db45f631c3d49dbcb6af9 (patch)
tree9e3d04c86a5865e2c47d2af4a5ef1f948fd7be34 /dvbapi.c
parent81cf0719fe0375407b304d17b2d6760940e06cfa (diff)
downloadvdr-c19ad04a214169430f2db45f631c3d49dbcb6af9.tar.gz
vdr-c19ad04a214169430f2db45f631c3d49dbcb6af9.tar.bz2
DVD support is now optional
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/dvbapi.c b/dvbapi.c
index bd622007..5406a189 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -5,8 +5,9 @@
* how to reach the author.
*
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
+ * based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
*
- * $Id: dvbapi.c 1.99 2001/08/05 15:46:21 kls Exp $
+ * $Id: dvbapi.c 1.100 2001/08/06 16:19:20 kls Exp $
*/
//#define DVDDEBUG 1
@@ -27,9 +28,11 @@ extern "C" {
#include <sys/time.h>
#include <unistd.h>
+#ifdef DVDSUPPORT
extern "C" {
#include "ac3dec/ac3.h"
}
+#endif //DVDSUPPORT
#include "config.h"
#include "recording.h"
@@ -1124,6 +1127,7 @@ bool cReplayBuffer::NextFile(uchar FileNumber, int FileOffset)
return replayFile >= 0;
}
+#ifdef DVDSUPPORT
// --- cDVDplayBuffer --------------------------------------------------------
class cDVDplayBuffer : public cPlayBuffer {
@@ -1651,7 +1655,7 @@ void cDVDplayBuffer::Input(void)
// dsyslog(LOG_INF, "DVD: new cyclestate: %d, pktcnt: %d, cur: %d", cyclestate, pktcnt, cur_output_size);
}
- dsyslog(LOG_INFO, "output thread ended (pid=%d)", getpid());
+ dsyslog(LOG_INFO, "input thread ended (pid=%d)", getpid());
}
#define NO_PICTURE 0
@@ -2004,6 +2008,7 @@ void cDVDplayBuffer::GetIndex(int &Current, int &Total, bool SnapToIFrame)
{
Current = Total = -1;
}
+#endif //DVDSUPPORT
// --- cTransferBuffer -------------------------------------------------------
@@ -3332,6 +3337,7 @@ bool cDvbApi::StartReplay(const char *FileName)
return false;
}
+#ifdef DVDSUPPORT
bool cDvbApi::StartDVDplay(cDVD *dvd, int TitleID)
{
if (Recording()) {
@@ -3359,6 +3365,7 @@ bool cDvbApi::StartDVDplay(cDVD *dvd, int TitleID)
}
return false;
}
+#endif //DVDSUPPORT
void cDvbApi::StopReplay(void)
{