adamsutton / tvheadend

Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources.
http://www.lonelycoder.com/hts/tvheadend_overview.html
Other
19 stars 5 forks source link

Initial scan not completed priority #78

Closed ljalves closed 11 years ago

ljalves commented 11 years ago

When a mux is not yet "initially scanned", tvh should give higher priority to those mux's when scanning.

My testcase was simple:

At this point, tvh will rescan the mux's that already have their initial scan completed ignoring the ones that don't.

adamsutton commented 11 years ago

@ljalves I have to admit I hadn't considered this, typically its assumed that initial scan would be off (for already scanned muxes). But your suggestion does make sense, so I'll take a look, should be a one line change methinks.

adamsutton commented 11 years ago

Fixed. Muxes already done are moved to the end, those not are moved to the front. My only concern is if I've broken some logic somewhere! Though I don't think so.

One thing where this logic is broken is that muxes that fail to scan due to lack of adapters are currently stuffed on the end of the list. I think that will just have to do for now (I'm worried about doing a real sort could result in something getting stuck).