tvheadend/tvheadend — pull request #265 by BtbN (2013-04-06 03:24:04+00:00)
Title: Fix capmt for multi-frontend adapters

With multi-frontend-adapters, tvheadend tries to open multiple udp sockets on the same port(one for each frontend on the same adapter, as the port number is 9000 + adapter_num), making it impossible to use capmt with such adapters.

This simple patch fixes it by checking if the "adapter" is enabled before opening any UDP sockets for it.