Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#10667 closed Patch - Bug Fix (fixed)

iptv bind error (devel/rtp)

Reported by: nok@… Owned by: danielk
Priority: minor Milestone: 0.26
Component: MythTV - General Version: Unspecified
Severity: medium Keywords: iptv
Cc: Ticket locked: no

Description

When using same port-no for multiple iptv streams, at least udp, all data goes to the first socket opened. Thus if you have two recordings on two different streams, all data goes to the first stream and the second recording fails. Including the multicast address in the bind statement when joining the stream fixes this.

Attachments (1)

patch2.txt (596 bytes) - added by anonymous 6 years ago.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by anonymous

Attachment: patch2.txt added

comment:1 Changed 6 years ago by chemobejk@…

I have the same problem with devel/rtp and SSP's IPTV service: all IPTV streams URLs use the same port, i.e. udp://224.x.y.z:1111/.

I've applied the patch and can confirm that it fixes the problem.

comment:2 Changed 6 years ago by danielk

Milestone: unknown0.26
Owner: set to danielk
Status: newassigned

comment:3 Changed 6 years ago by Daniel Thor Kristjansson <danielk@…>

Resolution: fixed
Status: assignedclosed

In 3a34be618f861c742e3ffbf3701be7c340584b27/mythtv:

Fixes #10667. Bind to multicast address.

If multiple servers multicast content on the same port we can't receive it on multiple
recorders if bind to QHostAddress::Any. If we bind to the multicast address we don't
have this problem. Problem discovered and patched by Niels Ole Kirkeby.

Note: This also adds error handling for when a bind fails.

comment:4 Changed 6 years ago by chemobejk@…

Verified - commit solves the problem. Thanks.

comment:5 Changed 5 years ago by Daniel Thor Kristjansson <danielk@…>

In 3a34be618f861c742e3ffbf3701be7c340584b27/mythtv:

Fixes #10667. Bind to multicast address.

If multiple servers multicast content on the same port we can't receive it on multiple
recorders if bind to QHostAddress::Any. If we bind to the multicast address we don't
have this problem. Problem discovered and patched by Niels Ole Kirkeby.

Note: This also adds error handling for when a bind fails.

Note: See TracTickets for help on using tickets.