andoma/tvheadend — pull request #104 by adamsutton (2012-06-27 08:55:46+00:00)
Title: Epg rewrite

Well, here goes...

I don't think this is finished. There are a few things I'm not entirely happy with:

1. Structure of the code. I intend to break the epggrab.c and epg.c files down a bit to make them a little more manageable.

2. The background mux scanning. It seemed like a good idea at the time, but I think I need to re-think it. I think there probably needs to be a global list of muxes to be scanned. So that I don't waste time trying to run an EPG grabber on the same mux on different adapters simultaneously. It just won't work for the most part as too many data structures are shared.

3. extended EIT scanning doesn't detect completion, so it'll tie up the mux (from point of view of background scan) for several minutes.

Since you're away for a few weeks, this will give me some time to work on these aspects of the code before you're actually ready to pull.

But I definitely think its worth taking a look at the code, I'm sure there will be things you won't be happy with stylistically (inc naming?) that you may want me to change. Would be good to get those out of the way as soon as possible.

Regards
Adam

P.S.
I know its a LOT of code to look through and I don't expect any quick answers, this is more a statement of intent that I think the code is reaching a reasonable state and I'd like you (and others) to take a look and maybe run it for a bit.