Commit graph

3625 commits

Author SHA1 Message Date
Adam Sutton
3fdac50ad4 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).
2013-09-19 22:19:12 +01:00
Adam Sutton
f720eb35e2 webui: UI crashed for non store based enumerations 2013-09-19 20:45:25 +01:00
Adam Sutton
c8a2bc0b54 linuxdvb: fix dvb-s config params modulation and rolloff 2013-09-19 11:35:06 +01:00
Adam Sutton
35c64ccd84 mpegts: change some config strings to be more user friendly 2013-09-19 11:35:06 +01:00
Adam Sutton
d4b4b831fc 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.
2013-09-19 11:02:52 +01:00
Adam Sutton
653156a702 tvhlog: correct subsys processing, stuff was being incorrectly logged 2013-09-19 11:01:58 +01:00
Adam Sutton
0f7848cc00 linuxdvb: honour the autodiscovery option 2013-09-18 14:09:32 +01:00
Adam Sutton
8db7690c93 cwc: added missing free() to stop memory leak 2013-09-18 13:58:45 +01:00
Adam Sutton
fb7fd61a6f Merge remote-tracking branch 'amet/feature/dvb-rewrite_mgclient1' into feature/dvb-rewrite 2013-09-18 13:58:09 +01:00
amet
4a4c72bec3 descrambler: configure with --enable-dvbcsa flag 2013-09-18 13:52:10 +01:00
amet
0566d3fa3a move detect_card_type to commonly accessible place 2013-09-17 21:06:31 +04:00
amet
f2e1e9c3ad extend cwc to act as Mgclient, one port many caids 2013-09-17 21:02:05 +04:00
Adam Sutton
17bb7d99ea webui: started updating the idnode functionality to be cleaner
It's still a mess, but it mostly does the job
2013-09-17 09:45:52 +01:00
Adam Sutton
509d1923cd ui: I have slightly hacked the multi combo to return a list for the form value 2013-09-17 09:45:52 +01:00
Adam Sutton
e27e5346ee api: updated idnode objects to support new rend() method in prop_t
This allows enumerated (ish) types to now be fully sorted and filtered in
the way you'd expect from the UI.
2013-09-17 09:45:52 +01:00
Adam Sutton
1deda4c52e idnode: just a few bits of tidying up 2013-09-17 09:45:52 +01:00
Adam Sutton
89e3c813df service_mapper: added extra (probably redundant) list check 2013-09-16 21:46:51 +01:00
Adam Sutton
887f00856a 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).
2013-09-16 21:41:21 +01:00
Adam Sutton
dc598f8521 htsmsg: add routine to convert a list to a CSV string
Note: this will not work with all lists, only lists of basic types.
2013-09-16 21:39:12 +01:00
Adam Sutton
251f5e8296 support: update config migration script for new idnode lists 2013-09-16 15:04:44 +01:00
Adam Sutton
4491798e12 service: update to new idnode API for lists 2013-09-16 15:03:40 +01:00
Adam Sutton
833ba93673 channel: updated to the new idnode/prop API for fields that represent lists 2013-09-16 14:58:08 +01:00
Adam Sutton
62d62e0a6e api: added channeltag list API call 2013-09-16 14:58:07 +01:00
Adam Sutton
a4adf79a7c idnode prop: new API for specifying lists
This is to avoid the need for string processing within the C code to combine
and split lists from CSV strings.
2013-09-16 14:58:07 +01:00
Adam Sutton
1fe897492b api: started to migrate EPG functions to the common API 2013-09-16 14:22:10 +01:00
Adam Sutton
c4f1e215ee webui: fix issue that caused UUIDs (not strings) to be displayed on update 2013-09-13 16:52:22 +01:00
Adam Sutton
f02bfac363 input: include missing information about stream info 2013-09-13 16:30:25 +01:00
Adam Sutton
9b03e05207 input: fix error in BER reporting 2013-09-13 16:19:29 +01:00
Adam Sutton
012b0ef80f linuxdvb: fix mistake in diseqc setup, missed LNB config entirely! 2013-09-13 15:50:31 +01:00
Adam Sutton
a6e5ee41dc mpegts: ensure that mux descriptor callback is only called with valid mux 2013-09-13 12:56:02 +01:00
Adam Sutton
c5eb0f404f linuxdvb: fix diseqc switch control (thanks to amet for fixing/testing).
The problem was that I played fast and loose with the diseqc spec. I set the
line volts much later than you're supposed to, for various reasons.

I've now sorted that, though because of the complexity if a rotor exists I
run a full re-program of the switch (only if a rotor is present). And I double
set the line volts, both in the switch (to ensure it happens early) and then
in the LNB tuning (in case no switch exists).
2013-09-13 11:05:29 +01:00
Adam Sutton
bb72cd525d subscriptions: reporting of subs output caused passthru streams to crash
I had forgotten that MPEGTS passes raw pktbuf not pkt and so was attempting
to incorrectly extract the length and causing it to crash.
2013-09-12 22:48:22 +01:00
Adam Sutton
83f6524344 subscription: fix double list insertion on detection of bad service
If a service was marked as bad (no input) it was not unlinking the
subscription from the service before re-applying, this resulted in
a double entry into the service subs list and ultimatey a livelock
or possibly worse.
2013-09-11 22:12:40 +01:00
Adam Sutton
ea33966fc3 tvhlog: added build define to remove logging thread.
I think eventually I'll make this is cmdline switch so I can turn it on if
I need it.
2013-09-11 22:12:05 +01:00
Adam Sutton
46b3f984c8 capmt: fix problems with capmt not being properly enabled
This was due to failure to properly reported which adapters have
been enabled. There are other problems with the capmt setup code
that really need addressing, but I don't have the time right now!
2013-09-11 21:04:30 +01:00
Adam Sutton
95c76059f7 idnode: make tree's default sorted by title 2013-09-11 10:00:22 +01:00
Adam Sutton
05dd018b5a debug: just some tidying up of debug output 2013-09-11 09:24:34 +01:00
Adam Sutton
e74f993b76 mpegts: ensure that potentially valid muxes are not ignored
It's possible a mux is not tunable, yet that doesn't imply the presence
of a free tuner means its invalid. It could just be that its an S2 mux
with only an S tuner available (just one example).
2013-09-11 09:24:34 +01:00
Adam Sutton
f7cb2fd74d Close a few file handles that have been left open unecessarily. 2013-09-11 08:47:31 +01:00
Adam Sutton
2a149671d6 linuxdvb: add option to stop closing FEs and attempt to stop on retune
Rather than adding an explicit flag (to stop mux calls) on retune I
have moved the frontend close operation to be done in the background
monitor timer. This isn't foolproof but will cover most things
and I can probably add a delay to cause that to not execute immediately
should the timer be about to expire.
2013-09-11 00:22:06 +01:00
Adam Sutton
ee03fde53a subscriptions: add extra debug 2013-09-11 00:18:19 +01:00
Adam Sutton
8e00dc64d9 mpegts: stop network scanning from failing due to bad mux 2013-09-11 00:18:19 +01:00
Adam Sutton
1253a97177 linuxdvb: add NULL ptr check for frontend on satconf 2013-09-10 23:26:36 +01:00
Adam Sutton
4fb7dca71e subscription: for stupid mistake causing double free()'s 2013-09-10 21:15:02 +01:00
Adam Sutton
64655df096 tsfile: fix debug output format error 2013-09-10 17:25:34 +01:00
Adam Sutton
ee7937f76a transcoder: check for language config is NULL 2013-09-10 17:23:08 +01:00
Adam Sutton
46eecb85f1 debug: output used non word sized format strings 2013-09-10 17:07:15 +01:00
Adam Sutton
73b35edae7 webui: some attempt to make enum lists more usable. 2013-09-10 16:27:22 +01:00
Adam Sutton
10854c1cf4 subscription: add in/out bandwidth indicator
Now have the concept of both input and output bandwidth usage of a sub.

The reason for this is that while data may be flowing into the subscription,
i.e. a signal is being received. Things like timeshift, or even potentially
flow control, may mean the actual outgoing rate is quite different.

Input rate is added by the subscription code as data enters the sub, however
the output rate must be added by the subscription handler as close to the
client as possible.
2013-09-10 16:26:14 +01:00
Adam Sutton
e857acca84 subscription: reworked the subscription handling to avoid re-entrancy
This is particularly important for null susbcriptions that receive no
stream data and therefore handle the SMT_STOP inline (actually was
direct before). This causes list corruption, therefore these subs
are now stored to a secondary list that are cleaned up within the
standard rescheduler.
2013-09-10 15:48:23 +01:00