summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-02-02 13:44:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-02-02 13:44:24 +0100
commitddec0a101bfb97caa23ca731b8041547717a5eb3 (patch)
tree10ae250d9740fae442ca54466ca69e175f223ee9 /dvbapi.c
parent2a31a4eca81b75bfab9a9fbbe2aa8f9eeec38f9f (diff)
downloadvdr-ddec0a101bfb97caa23ca731b8041547717a5eb3.tar.gz
vdr-ddec0a101bfb97caa23ca731b8041547717a5eb3.tar.bz2
Changed the [dei]syslog macros to use var args; fixed error handling in establishing an SVDRP connection
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 048639c6..314d91f6 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -7,7 +7,7 @@
* 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.146 2002/01/26 15:39:48 kls Exp $
+ * $Id: dvbapi.c 1.147 2002/02/02 13:04:00 kls Exp $
*/
//#define DVDDEBUG 1
@@ -548,9 +548,8 @@ void cRecordBuffer::Input(void)
}
else if (r < 0) {
if (FATALERRNO) {
- if (errno == EBUFFEROVERFLOW) { // this error code is not defined in the library
+ if (errno == EBUFFEROVERFLOW) // this error code is not defined in the library
esyslog(LOG_ERR, "ERROR (%s,%d): DVB driver buffer overflow", __FILE__, __LINE__);
- }
else {
LOG_ERROR;
break;
@@ -1064,9 +1063,8 @@ cReplayBuffer::cReplayBuffer(cDvbApi *DvbApi, int VideoDev, int AudioDev, const
return;
// Create the index file:
index = new cIndexFile(FileName, false);
- if (!index) {
+ if (!index)
esyslog(LOG_ERR, "ERROR: can't allocate index");
- }
else if (!index->Ok()) {
delete index;
index = NULL;
@@ -2251,9 +2249,8 @@ void cTransferBuffer::Input(void)
}
else if (r < 0) {
if (FATALERRNO) {
- if (errno == EBUFFEROVERFLOW) { // this error code is not defined in the library
+ if (errno == EBUFFEROVERFLOW) // this error code is not defined in the library
esyslog(LOG_ERR, "ERROR (%s,%d): DVB driver buffer overflow", __FILE__, __LINE__);
- }
else {
LOG_ERROR;
break;
@@ -2719,12 +2716,10 @@ bool cDvbApi::Init(void)
}
}
PrimaryDvbApi = dvbApi[0];
- if (NumDvbApis > 0) {
+ if (NumDvbApis > 0)
isyslog(LOG_INFO, "found %d video device%s", NumDvbApis, NumDvbApis > 1 ? "s" : "");
- } // need braces because of isyslog-macro
- else {
+ else
esyslog(LOG_ERR, "ERROR: no video device found, giving up!");
- }
return NumDvbApis > 0;
}