Project

General

Profile

Actions

Bug #388

closed

IPTV Imagenio Spain - > epoll_wait = 1

Added by Phill Lavender about 14 years ago. Updated over 13 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
IPTV
Target version:
Start date:
2011-02-27
Due date:
% Done:

0%

Estimated time:
Found in version:
Affected Versions:

Description

Looks like there's something stopping TVheadend processing streams (UDP, RTP) from Imagenio in Spain. - lastest GITs. - Trying my best to isolate it, but not really a coder so appreciate the assistance.

Attached Wireshark log shows TVheaded is bound to the multicast group (239.0.0.74:8208) and receiving UDP. (User data appears to start the TS header at byte 47, which I think is a little odd given the RTP v2 header is 16 bytes? , haven't got much further with that yet though.)

based on the above monitoring the Epoll_wait() function in iptv_input.c each packet returns a int value of 1 (?) so ends up in a continuous loop.
---

while(1) {
nfds = epoll_wait(iptv_epollfd, &ev, 1, 1);
if(nfds == -1) {
tvhlog(LOG_ERR, "IPTV", "epoll() error -
%s, sleeping 1 second",
strerror(errno));
sleep(1);
continue;
}
// tvhlog(LOG_INFO, "IPTV", "\"%d\" epoll() events", nfds); // bad logging...
if(nfds < 1) 
continue;

Files

capture1 (2.16 MB) capture1 Phill Lavender, 2011-02-27 20:35
Actions

Also available in: Atom PDF