Commit graph

4052 commits

Author SHA1 Message Date
Adam Sutton
f579279c1b linuxdvb: upated frontend code to use new mpegts_input API 2014-04-14 17:51:16 +01:00
Adam Sutton
4e3fc9d40b mpegts: reworking of the input threading
I have split the input threading in two. There is now a smaller/faster thread
responisble for reading data from the source device (file/socket/DVB/etc...)
and a potentially slower (though not too slow!) thread for processing.

This ensures that any minor delay in processing (potentially due to unexpected
effects during start/stop, or anything else!) do not unduly impact reading from
the source which could otherwise lead to loss of data.
2014-04-14 17:51:16 +01:00
Adam Sutton
0a3f08dacd mpegts: ensure scrambled streams are properly handled
If a scrambled has been seen on a "scrambled" channel all further packets
(within the subscription) MUST be processed through the descrambler else we
can end up with out of sequence packets causing CC errors. Relates to #1986
2014-04-14 17:51:03 +01:00
Adam Sutton
279e7cbfea util: added sbuf_read() to allow reading from FD straight into sbuf 2014-04-14 17:51:03 +01:00
Adam Sutton
e5383315a3 http: possible NULL ptr on shutdown 2014-04-14 17:51:02 +01:00
Adam Sutton
eee6409733 config: use local strdupa() routine for cross-platform compat.
Spotted by decke
2014-04-14 16:56:41 +01:00
Adam Sutton
a9215da88a util: fix typo if #ifndef protection, spotted by decke 2014-04-14 11:28:38 +01:00
Adam Sutton
af8e79c39e settings: return NULL if no settings path is set 2014-04-13 20:41:46 +01:00
Adam Sutton
23515ef466 linuxdvb: fix typo in field name 2014-04-13 20:31:49 +01:00
Adam Sutton
dd8d66370f cwc: don't give up on decode attempts (fixes #1844) 2014-04-13 20:24:17 +01:00
Adam Sutton
3c493bd82e linuxdvb: fix version for device enumeration support (fixes #2054) 2014-04-13 15:38:28 +01:00
Adam Sutton
b917ffa475 linuxdvb: fix compilation on pre DVB API v5.10 2014-04-09 21:37:12 +01:00
Adam Sutton
df11c19cfa linuxdvb: correct mistake in delsys enumeration caused by recent updates 2014-04-09 21:30:02 +01:00
Adam Sutton
876b5c3ae6 linuxdvb: some slight tweaks to naming of translation routines
Also publicly exposed one translation routine as its required in the adapter
setup
2014-04-09 21:28:56 +01:00
Adam Sutton
69fc982217 dvb: fix bug causing mux FE type from being overwritten 2014-04-09 00:03:01 +01:00
Adam Sutton
19a2b875e8 dvr: fix stupid compilation mistake (fixes #2038) 2014-04-08 08:09:18 +01:00
Adam Sutton
82048878c8 dvr: ensure update to in-progress recording doesn't restart (fixes #1982) 2014-04-07 21:35:40 +01:00
Adam Sutton
1369d5dbeb timeshift: ensure no use of potentially free()'d variable (fixes #2028) 2014-04-07 20:47:50 +01:00
Adam Sutton
5e777cbdbe url: fix stupid mistakes in regexp (fixes #2021) 2014-04-07 17:35:47 +01:00
Adam Sutton
dfeb0cee47 mpegts dvb: fix rather dubious assert (fixes #2036)
Could have ensure this was set correctly on input, but given that it was being
set if no config was passed and almost certainly it must by definition be the
same as the source mux, might as well simplify things.
2014-04-07 17:11:12 +01:00
Adam Sutton
5c73e78c28 webui: ensure we don't pass NULL to muxer_create for config (fixes #2017). 2014-04-07 17:11:12 +01:00
Adam Sutton
bba7572d19 config: fix problems with config migration (fixes #2035, #2023) 2014-04-07 17:11:06 +01:00
Adam Sutton
89e1b97a92 settings: ensure config path is absolute
I have a feeling using -D would break this due to the change to cwd?
2014-04-07 10:23:05 +01:00
Adam Sutton
3f51680a58 linuxdvb: fix stupid mistake in adapter config processing 2014-04-04 17:24:48 +01:00
Adam Sutton
804cb67350 dvb: remove the inline config migration, this is handled in config.c now 2014-04-04 16:17:56 +01:00
Adam Sutton
2080015aa6 Merge remote-tracking branch 'origin/pr/345' 2014-04-04 15:56:13 +01:00
Adam Sutton
4f3d858859 Merge remote-tracking branch 'origin/pr/356' 2014-04-04 15:55:44 +01:00
Adam Sutton
42dbcbe74e Merge remote-tracking branch 'origin/pr/358' 2014-04-04 15:55:37 +01:00
Adam Sutton
a351279395 Merge remote-tracking branch 'origin/pr/359' 2014-04-04 15:55:26 +01:00
Adam Sutton
a7858088ee Merge remote-tracking branch 'origin/pr/360' 2014-04-04 15:50:28 +01:00
Adam Sutton
250dc66c31 Merge remote-tracking branch 'origin/pr/361' 2014-04-04 15:36:35 +01:00
Adam Sutton
3748173605 config: update to include migration of the dvb networks folder 2014-04-04 15:31:49 +01:00
Adam Sutton
bb678d9359 Merge branch 'feature/pr/365' 2014-04-04 15:22:14 +01:00
Adam Sutton
7e89bbe3f4 Merge remote-tracking branch 'origin/pr/365' 2014-04-04 15:02:21 +01:00
Adam Sutton
819e508ad2 config: added migration of EPG and DVR entries 2014-04-04 13:15:00 +01:00
Adam Sutton
5901a0fe8b config: migration of DVB networks
This will not attempt to remove duplicate networks or configure the tuners.
I have decided this is just too much work to get right, versus very little
human input to correct.
2014-04-04 11:50:43 +01:00
Adam Sutton
9994e82824 config: initial work on internal migration 2014-04-04 09:55:08 +01:00
Adam Sutton
2b695add0c config: started to add the concept of a configuration version
This is to allow simple detection of a need to migrate, so that it can be done
in one centralised location. Rather than having to have lots of in place dual
config handling.

Some simple stuff will probably continue to be done in place, to avoid
constantly adding migration routines for trivial stuff. But anyting non-trivial
will at least be more easily handled without the need for external scripts.
2014-04-04 09:55:08 +01:00
Adam Sutton
bd2525ed2a idnode uuid: move uuid routines to sep. file so it can be used more generally 2014-04-04 09:55:07 +01:00
Adam Sutton
143c33f15b queue: mod to TAILQ_MOVE to ensure empty Q is properly copied/init
This mirrors a change that Andreas had already made in the showtime copy.
2014-04-04 09:55:07 +01:00
Adam Sutton
e6dd9aa2ca linuxdvb: fix DVB API version mistakes 2014-04-02 15:53:57 +01:00
Jaroslav Kysela
d1ad5631b5 Move the linuxdvb mux code to the shared mpegts network code
... introduce $CFG/input/dvb/networks/... structure
2014-04-01 17:45:51 +02:00
Jaroslav Kysela
23d330de12 Move the linuxdvb network code to the shared mpegts network code
... introduce $CFG/input/dvb/networks/... structure
2014-04-01 17:45:51 +02:00
Jaroslav Kysela
8b98f9c4a6 Move the linuxdvb service code to the shared mpegts service code
... introduce $CFG/input/dvb/networks/... structure
2014-04-01 17:43:13 +02:00
Jaroslav Kysela
c36c733519 linuxdvb: remove the satconf mpegts_input_t proxy to cleanup input handlers 2014-04-01 17:43:05 +02:00
Jaroslav Kysela
f228fe45c3 Do not rely on linux kernel's headers - preparing for network tuners (SAT-IP)
This is a complete migration to use the own mux configuration scheme without
the system limitations to allow write backends for the network tuners like
SAT-IP servers.
2014-03-31 21:31:37 +02:00
Jaroslav Kysela
34cf1530ad Wait also for the active TCP threads on shutdown 2014-03-24 14:39:54 +01:00
Jaroslav Kysela
da387b48fe Fix the missing thread join calls for tcp servers
This is a "hidden" memory leak, because the allocated stack pages are
not freed.
2014-03-23 12:10:52 +01:00
Glandos
d3ec5bfcfa Fix linkage error with --disable-cwc 2014-03-22 20:39:20 +01:00
Adam Sutton
6482d33ba9 muxer dvr: fix configuration passing to reduce potential for error
This should fix #2015
2014-03-21 14:56:46 +00:00