]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
service: handle input priority better
authorJaroslav Kysela <perex@perex.cz>
Mon, 26 May 2014 11:09:23 +0000 (13:09 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 10 Jun 2014 12:14:46 +0000 (14:14 +0200)
commit521c49e14b84f0093904b4529f0e61b64aea2876
tree3806d4bbaa5549883664f558ef6827920e1376a5
parent2be0f84f0f7127d0a85217cad339a1b472b074c9
service: handle input priority better

Ensure, that inputs with higher priorities are preferred.
The decision line is:

1) re-use input if the in-use mux matches
2) use a free input with highest priority
3) cancel the mux/input with smallest weight and use it for new
src/service.c