Commit graph

3847 commits

Author SHA1 Message Date
User Decke
b9344a0f3b build: Fix compile warning with clang 3.3
src/descrambler/cwc.c:493:11: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
  if (len < 0) return -1;
      ~~~ ^ ~
2014-01-04 22:16:58 +00:00
User Decke
5b45773014 misc: Consistently use hts_strdupa() instead of libc strdupa() which is Linux specific. 2014-01-04 22:08:43 +00:00
Adam Sutton
2d1bd1a254 mpegts: fix broken input handling for inputs with >1 active services..
This affects IPTV where there is only 1 input, if 2 services have the same PIDs
then both services were receiving each others packets and causing a mess!

I think later on I should really remove the transport list from the input and
have it on the mux? I think I did it this way to keep some things simpler, but
it's caused confusion here.

This should fix #1875.
2014-01-02 21:31:37 +00:00
Adam Sutton
af15bb2f1c Merge pull request #316 from bluzee/master
linuxdvb: fix typo in diseqc toneburst switch setting.  Fixes #1856
2014-01-02 11:10:09 -08:00
bluzee
fe073a14d1 linuxdvb: Typo. Fixes #1856 2014-01-02 09:45:54 -07:00
Adam Sutton
4d5c8a9ae2 zlib: fix error on partial compression of files. Fixes #1902.
This occurs where compressing small, already compressd files, typically images.

I could avoid compression of very small (or already compressed) files. But its
simple to keep things uniform and fixing this makes sense anyway!
2014-01-01 12:48:39 +00:00
Adam Sutton
688e0bef1f vendor: add historic DVB API headers
This is useful for validating new code against older versions (and newer).
2013-12-31 15:56:20 +00:00
Adam Sutton
b28e060415 webui: make EPG grid stateful. Fixes #1025. 2013-12-30 23:14:53 +00:00
Adam Sutton
fa6265d182 webui: add checkbox selector to all idnode grids. Fixes #1473. 2013-12-30 22:45:13 +00:00
Adam Sutton
2dbebfd81c support: fix IPTV configuration migration for disabled/unmapped channels 2013-12-30 14:43:56 +00:00
Adam Sutton
f75037aee7 http htsp: fix status handling. Race condition caused NULL ptr exception. Fixes #1898. 2013-12-30 09:19:14 +00:00
Adam Sutton
aea03049a0 mpegts: ensure init scan completes properly
I was not properly checking completion on table completion and CAT processing
was not marking that table as complete (ever).
2013-12-29 23:38:31 +00:00
Adam Sutton
403f2af9b9 mepgts: correct invalid interpretation of service type in VCT. Fixes #1857. 2013-12-29 23:04:51 +00:00
Adam Sutton
50f0dc7f9c main: provide option to make daemon dumpable 2013-12-27 23:39:37 +00:00
Adam Sutton
88e06607b0 mpegts: ensure that PCR (and PMT) are properly opened by service and recorded.
Fixes #1884.
2013-12-24 23:49:39 +00:00
Adam Sutton
821a854d90 support: updated some random helper scripts 2013-12-24 23:48:02 +00:00
Adam Sutton
a0f2bebcc5 iptv: allow non-multicast IPTV (useful for testing)
I don't actually check for valid MC group address, I simply try and add group
and just warn if it fails (but carry on anyway).
2013-12-23 23:56:10 +00:00
Adam Sutton
4226ea5e31 iptv: ensure startup will not block installation of PID filters 2013-12-23 23:55:57 +00:00
Adam Sutton
8438dfd7a6 epggrab: reduce spam in the logs, fixes #1839. 2013-12-23 23:01:52 +00:00
Adam Sutton
a8ce127dee epggrab: ensure / in channel ID doesn't cause config failure. Fixes #1774. 2013-12-23 22:37:27 +00:00
Adam Sutton
0c039fc2f4 build: add default Autobuild job (debian)
This works fine for most native compilations, so saves spec'ing anything else.
2013-12-23 21:25:38 +00:00
Adam Sutton
89f9cf40ae misc: add qsort_r replacement for glibc < 2.8. Fixes #1871 2013-12-22 21:45:53 +00:00
Adam Sutton
da3473368c mpegts: fix some minor compilation issues on older gcc 2013-12-22 21:45:53 +00:00
Adam Sutton
63cdff215f linuxdvb: work around bug in gcc <4.6. Fixes #1869 2013-12-22 21:45:53 +00:00
Adam Sutton
cd92bb0ce3 linuxdvb: move FE status message from trace to debug on change
This could still be spammy if the signal isn't clean and keeps going
in and out. But that's just tough luck I guess!
2013-12-22 21:45:53 +00:00
Adam Sutton
b15f65490a linuxdvb: possible HW race condition, LNB might not switch LO before FE locks 2013-12-22 21:45:53 +00:00
Adam Sutton
3e11bc4f13 support: remove stray commenting out of stderr redirect 2013-12-22 20:55:38 +00:00
Adam Sutton
13864f9eac mpegts: update to the way init scan table completion is handled
Should be a bit better at handling tables that may or may not exist.
We have an initial timeout after which we check if data for any tables
has been received but incomplete.

This is still far from ideal, really what is needed is to make this
all more async based on when we sync etc... but this will do for now.
2013-12-21 22:35:25 +00:00
Adam Sutton
70bf35b6f6 main: add some (commented out) debug for gtimer and fixed minor issue in gtimercmp
The issue should be benign, equal timers were always reported -1, not right.
2013-12-21 22:35:25 +00:00
Adam Sutton
57b7b33d3a main: Fix stupid typo in tsfile ATSC option flag 2013-12-21 22:35:25 +00:00
Adam Sutton
89d7bb308f capmt: fix silly error in capmt record building with new connected field 2013-12-18 19:21:13 +00:00
Adam Sutton
7d6f932bd5 capmt: attempt to avoid confusion over validity of configuration
UI now has 3 possible colours, red - not working, orange - not connected
(but will probably work, used for new non-persistent mode 2) and green -
actively connected.
2013-12-18 18:53:02 +00:00
Adam Sutton
c76b10fc18 Merge remote-tracking branch 'origin/pr/311' 2013-12-18 18:12:30 +00:00
Adam Sutton
e67a30c225 iptv: stop possible crash on IPTV mux tune failure 2013-12-17 22:26:18 +00:00
Adam Sutton
dae84cec66 support: add basic IPTV migration to conf_migrate script 2013-12-17 21:53:50 +00:00
Mariusz Bialonczyk
2db7becc5b capmt: adjust for recent OSCam frame change
Additional byte describing adapter index was
added to the beginning of the frame.
It only affect tvh capmt mode 2.
2013-12-13 09:21:24 +01:00
Adam Sutton
6f62adc287 linuxdvb: fix bug stopping adapter path fallback working. fixes #1855. 2013-12-12 22:32:16 +00:00
Adam Sutton
6c3aca2880 support: add ccache support to configure script 2013-12-12 22:28:45 +00:00
Adam Sutton
3e41a7610d linuxdvb: was not storing ATSC configuration, fixes #1867. 2013-12-12 22:28:07 +00:00
Dave Chapman
eb8c99b493 webui: Fix "Page: All" display by using a large value for it instead of -1 2013-12-06 23:40:53 +00:00
Adam Sutton
5fce3a4941 muxer pass: correct program number in PMT generation 2013-12-06 12:04:15 +00:00
Adam Sutton
1dcb0947b9 Merge pull request #309 from manio/master
Fix loading charset overrides list
2013-12-05 04:44:29 -08:00
Mariusz Bialonczyk
3753b1122b Fix loading charset overrides list
The dvb_charset_init() was not called anywhere.
2013-12-05 12:55:32 +01:00
Adam Sutton
f6f79ad413 tvhlog: stop full debug by default if --trace specified
Often I want to enable trace (and debug) for a specific set of subsys,
but I had it configured to enable ALL debug if any debug related options
were spec'd (for compat). But this was a PITA and I kept doing
--trace blah --debug none just to get around it!
2013-12-04 23:28:29 +00:00
Adam Sutton
321d6b35bf webui: minor correction to checkbox controls 2013-12-04 22:56:33 +00:00
Adam Sutton
b3366c6631 linuxdvb: allow init scan to be started/stopped by setting initscan state 2013-12-04 22:56:33 +00:00
Adam Sutton
34743f9cbc subscriptions: reverse EPG and initscan priorities
For networks with extended EIT, having EPG take precdence causes chaos
during init scan. The reality is that forcing an EPG scan to stop because
someone wants to scan a new mux is probably the right thing to do anyway.
2013-12-04 22:56:32 +00:00
Adam Sutton
d58410d817 epggrab: ensure muxes with no (or disabled) modules aren't started 2013-12-04 22:56:32 +00:00
Adam Sutton
9fc6e36114 tsfile: cmdline flag to specify ATSC input
Previously all standard DVB and ATSC tables were installed, this
would cause the initscan to time out. We try and be more clever
with determining the type, but this will do for now.

The code allows the option to be per mux (file), but the cmdline
is currently limited to a global setting, which is likely to be
more than enough.
2013-12-04 22:17:22 +00:00
Adam Sutton
ea751dada6 linuxdvb: API compat fixes for stats update from PR307 2013-12-04 21:55:13 +00:00