catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
327 stars 80 forks source link

Fix -A in combination with -S for AXE devices #979

Closed Jalle19 closed 2 years ago

Jalle19 commented 2 years ago

Since source_enabled_for_adapter always returned 1, the wrong adapter ended up being chosen if the list of sources per adapter has been modified using -S (useful when having two Unicable inputs).

Jalle19 commented 2 years ago

I'm still doing some testing, but at least with this change I got the right input to be used depending on the src= value in the request. Without this patch, the first available adapter was always chosen (since all adapters had all sources enabled).

Jalle19 commented 2 years ago

Finished testing, now -S 0-2:0,3:3 -A 0:0:0,0:1:0,0:2:0,1:3:0 does what -S 0-2:0,3:3 -U 0-2:3 used to do.

Jalle19 commented 2 years ago

Next up I'll try to make the input selection smarter so any tuner can use any Unicable input.