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

Added missing setsockopt() for IP_PKTINFO.

Cleaned up Italian translation.
This commit is contained in:
Rolf Ahrenberg 2010-09-12 12:54:14 +03:00
parent a05766c90d
commit b0dba49fbc
3 changed files with 6 additions and 7 deletions

View File

@ -142,7 +142,7 @@ VDR Plugin 'iptv' Revision History
- Updated for vdr-1.7.15.
2010-09-09: Version 0.4.3
2010-09-12: Version 0.4.3
- Renamed Sid scanner to section id scanner and added
experimental Tid/Nid support into it.

View File

@ -151,9 +151,8 @@ msgstr "Tid"
msgid "Rid"
msgstr "Rid"
#, fuzzy
msgid "Scan section ids"
msgstr "Scansione Pids"
msgstr "Scansione Section Ids"
msgid "Scan pids"
msgstr "Scansione Pids"
@ -166,6 +165,3 @@ msgstr "Indirizzo"
msgid "Parameter"
msgstr "Parametro"
#~ msgid "Scan Sid/Nid/Tid"
#~ msgstr "Scansione Sid/Nid/Tid"

View File

@ -59,7 +59,10 @@ bool cIptvSocket::OpenSocket(const in_addr_t InetAddr, const int Port, const boo
ERROR_IF_FUNC(fcntl(socketDesc, F_SETFL, O_NONBLOCK), "fcntl()",
CloseSocket(), return false);
// Allow multiple sockets to use the same PORT number
ERROR_IF_FUNC(setsockopt(socketDesc, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) < 0, "setsockopt()",
ERROR_IF_FUNC(setsockopt(socketDesc, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) < 0, "setsockopt(SO_REUSEADDR)",
CloseSocket(), return false);
// Allow packet information to be fetched
ERROR_IF_FUNC(setsockopt(socketDesc, SOL_IP, IP_PKTINFO, &yes, sizeof(yes)) < 0, "setsockopt(IP_PKTINFO)",
CloseSocket(), return false);
// Bind socket
memset(&sockAddr, 0, sizeof(sockAddr));