Adam Sutton [Mon, 18 Nov 2013 09:21:35 +0000 (09:21 +0000)]
linuxdvb: old code would update tuning params even without auto-discovery
This is important for correcting mistakes in the pre-defined configuration
files, and also picking up potential changes (not sure that will quite work).
The one thing that is left untouched is the frequency, a) to not confuse people
and b) I've seen 2 transponders sending slightly diff freq and this can cause
the config to be constantly updated.
The one thing this will also do, for better or worse, is remove an AUTO
settings. Cons are it could be less flexible an tuners may automatically deal
with small changes in settings, Pro's are if you have some tuners that accept
AUTO and some that don't, once its scanned on something that does it will get
updated. Plus its probably better, where possible, to have the full settings.
This was done for a reason, but unfortunately it wasn't really done properly
and causes some unintended side-effects. The basic principle still needs
some looking at, but properly handled differently.
Adam Sutton [Mon, 11 Nov 2013 17:48:11 +0000 (17:48 +0000)]
webui: some changes to default display for UI
This is based on feedback from linuxstb, I'm not 100% convinced about all
aspects. But will throw it out there and see what others think of the change.
Adam Sutton [Mon, 11 Nov 2013 17:41:05 +0000 (17:41 +0000)]
status: remove HTTP status info for now
This breaks if, like me, you're using a proxy (or browser) which doesn't
support persitent connections, since you just get a constant reloading
of the UI! Will have to re-think, since ultimately what I really want is
to know user auth's within the UI, so possibly that will be easier when
we do away with HTTP Basic Auth, but also probably require restructuring
of this code.
Adam Sutton [Mon, 11 Nov 2013 09:52:29 +0000 (09:52 +0000)]
status: collect (and post) status of all TCP connections
This will indiscrimately include all HTSP and HTTP connections, first pass
I was going to just dump the lot on a UI status tab. However it could be
some filtering might be useful.
Adam Sutton [Sat, 9 Nov 2013 13:15:21 +0000 (13:15 +0000)]
capmt linuxdvb: some minor tweaks to ensure only necessary are enabled
Only adapters that have active frontends will be enabled in capmt. In
addition to this I've also fixed code so it will actually honour the port
configuration (which was being ignored in OSCAM mode).
Adam Sutton [Sat, 2 Nov 2013 21:05:09 +0000 (21:05 +0000)]
linuxdvb: various fixes and simplifications to the satconfig
it's now possible to change hte number of satconfs in advanced mode,
however at the moment the only way to delete something is by reducing the
number of orbital positions and this will always delete the last element.
Not ideal and I'm sure people will complain, but i can't be assed to add
the delete button (at the moment)!
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).
User Decke [Mon, 3 Jun 2013 09:36:47 +0000 (11:36 +0200)]
tvhpoll: various fixes for tvhpoll on FreeBSD
- kqueue filters are not bitmasks so we need to treat them a bit different
- Properly check timeout because default value is -1
- Use correct variable kevent.filter to detect which event was triggered
- Fix building on FreeBSD i386
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.