Adam Sutton [Thu, 17 Oct 2013 20:39:44 +0000 (21:39 +0100)]
linuxdvb: started updating to the new hardware API
I actually had this basically working, but then barrelled on with changing
satconf further, without committing anything (got back into old SVN bad habits)
so what's here is a bit of a half finsihed mess
Adam Sutton [Mon, 21 Oct 2013 12:33:02 +0000 (13:33 +0100)]
mpegts: fix processing errors when <188 bytes is received
Also fix raw streaming where data is not %188, previously the code would have
sent duplicate bytes which would have caused (unecessary) errors downstream.
Adam Sutton [Sat, 12 Oct 2013 11:26:22 +0000 (12:26 +0100)]
webui: stop multi select combo selecting the wrong thing
this was because it reverted to using the display string and doing
a reverse mapping. Which is clearly the wrong way to do things when you
can have multiple display fields for the same key value.
Adam Sutton [Fri, 11 Oct 2013 20:50:30 +0000 (21:50 +0100)]
htsp: add delayed unsubscription in response to HTSP request
The reason for this is there isn't a command for "changing" channel, this may
be changed in the future. So to simulate it the subscription weight is change
to a minimum level and then a new one can be created, thus reducing the need
to stop the tuner (especially for in mux zaps).
Adam Sutton [Fri, 11 Oct 2013 12:41:46 +0000 (13:41 +0100)]
misc: Remove memory leaks and other anomalies
Many of these are somewhat redundant now, as I've suppressed many of the
warnings as they're false positives. However the changes, such as added
a detach flag to tvhthread_create(), have been kept anyway.
Adam Sutton [Thu, 10 Oct 2013 09:59:42 +0000 (10:59 +0100)]
channel: remove direct usage of ch_name
This is because the field can now be NULL and there were places where this
was not properly checked. So now a function call channel_get_name() should
be used instead and is garaunteed to return non-NULL.
In addition to this there is a nice added benefit. You can NOT set the name,
and it will automatically pull the name from the first available service. This
will not be persistent (part of config) unless you change that name and save
from the UI. This means if the service name changes, so will the channel name.
However on that last point there will not be, currently, any message sent to
the clients (HTSP) to inform them of such a change. So there might be some lag
in getting the update.
Adam Sutton [Fri, 27 Sep 2013 19:34:18 +0000 (20:34 +0100)]
subscription: fix full mux sub hook
I'd added this so that ALL mux subs tried to use fullmux reception. This was
clearly not what was intended as the only time this is needed (at present)
is when subscribing for muxdump from the webui.
Adam Sutton [Thu, 26 Sep 2013 22:12:04 +0000 (23:12 +0100)]
service: service listing was broken
I think it was quite possible for two services on the same multiplex not
to share the same tuner. Also I wasn't convinced about how it kicked running
services.
Adam Sutton [Wed, 25 Sep 2013 20:55:59 +0000 (21:55 +0100)]
wrappers: remove use of pthread_setname_np
This is not supported by ulibc, however since prctl is part of standard
Linux kernel since 2.6.9, I've added a thin wrapper around thread startup
to call that method from within the thread.
Adam Sutton [Thu, 19 Sep 2013 21:17:02 +0000 (22:17 +0100)]
linuxdvb: added pre-defined mux configuration file support
This had been left out for too long and makes it awkward for novices
to setup the networks. The config is possibly not as nice as before where
it was presented as a tree. But this can be improved later.
Adam Sutton [Thu, 19 Sep 2013 21:17:59 +0000 (22:17 +0100)]
idnode: allow NOSAVE options to be "loaded".
This is needed since this routine is used to also load config on creation.
So if a NOSAVE option is included there it will not load it. If it really
is NOSAVE it shouldn't be in the config files anyway (due to NOSAVE check
on actual save).
Adam Sutton [Thu, 19 Sep 2013 10:02:52 +0000 (11:02 +0100)]
mpegts: remove the wait for NIT in SDT processing
This causes initial scans to time out where the SDT is waiting on
mux information from. Given that we'll rescan these muxes anyway
there is little point.
The only downside is the single point of info muxes (like 11778V
in the UK) may not get the opportunity to provide all the info they
could, since we might miss service info until later.
Adam Sutton [Mon, 16 Sep 2013 20:41:21 +0000 (21:41 +0100)]
idnode prop: make it possible to properly sort/filter enum/list types
This does require a certain level of extra input from prop_t users where
the type is enumerated. A new routine rend() must be implemented to provide
the rendered value (for lists that are not enum, this is done transparently).