1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 11:37:03 +00:00

Compare commits

..

3 Commits

Author SHA1 Message Date
Rolf Ahrenberg
2226be2edd Use 2MB ringbuffer per device. 2016-05-12 23:51:39 +03:00
Rolf Ahrenberg
d3a73019c0 C++11 requires a mandatory space when concatenating string literals. 2016-02-07 13:42:16 +02:00
Rolf Ahrenberg
db7bb8f9b5 Update README. 2016-01-31 20:23:08 +02:00
2 changed files with 10 additions and 18 deletions

7
README
View File

@@ -46,13 +46,6 @@ make -C iptv-X.Y.Z install
Setup menu:
- TS buffer size [MB] = 2 Defines ringbuffer size for transport
stream in MB.
Valid range: 1...4
- TS buffer prefill ratio [%] = 0 Defines prefill ratio for transport
stream ringbuffer before data is
transferred to VDR.
Valid range: 0...40
- Protocol base port = 4321 Defines base port used in CURL/EXT
protocol. Two ports are defined for
each device.

View File

@@ -14,7 +14,7 @@
#define ELEMENTS(x) (sizeof(x) / sizeof(x[0]))
#define IPTV_BUFFER_SIZE MEGABYTE(1)
#define IPTV_BUFFER_SIZE KILOBYTE(2048)
#define IPTV_DVR_FILENAME "/tmp/vdr-iptv%d.dvr"
@@ -32,18 +32,17 @@
#define SECTION_FILTER_TABLE_SIZE 5
#define ERROR_IF_FUNC(exp, errstr, func, ret) \
do { \
if (exp) { \
char tmp[64]; \
esyslog("[%s,%d]: "errstr": %s", __FILE__, __LINE__, \
strerror_r(errno, tmp, sizeof(tmp))); \
func; \
ret; \
} \
#define ERROR_IF_FUNC(exp, errstr, func, ret) \
do { \
if (exp) { \
char tmp[64]; \
esyslog("[%s,%d]: " errstr ": %s", __FILE__, __LINE__, \
strerror_r(errno, tmp, sizeof(tmp))); \
func; \
ret; \
} \
} while (0)
#define ERROR_IF_RET(exp, errstr, ret) ERROR_IF_FUNC(exp, errstr, ,ret);
#define ERROR_IF(exp, errstr) ERROR_IF_FUNC(exp, errstr, , );