Commit graph

4421 commits

Author SHA1 Message Date
Jaroslav Kysela
454a529c02 descrambler: tiny log message updates 2014-06-16 14:33:17 +02:00
Jaroslav Kysela
7a06f00d97 dvb autodiscovery: more logs and improvements
- added logs for the scanfile mux creation
- added logs for the autodiscovery mux creation
- added logs for the autodiscovery mux changes
- use also symbol rate for the equal mux comparison
- handle the delivery system change (dvb-s / dvb-s2 switch for example)
2014-06-13 22:49:04 +02:00
Jaroslav Kysela
02d1da49c2 dvb_support: add dvb_mux_conf_str() 2014-06-13 22:21:04 +02:00
Jaroslav Kysela
4699c3a71a mpegts_network_dvb: fix the orbital position check for predefined muxes (scanfile) 2014-06-13 00:00:24 +02:00
Jaroslav Kysela
74e15e3273 scanfile: fix parsing for the latest formats 2014-06-12 23:01:53 +02:00
Jaroslav Kysela
65aad9ba55 mpegts_mux_dvb: fix the dvb-s position parsing 2014-06-12 22:48:26 +02:00
Jaroslav Kysela
58b6bd8e3c capmt: there are multiple waiters - use pthread_cond_broadcast() 2014-06-12 19:52:31 +02:00
Jaroslav Kysela
501aa5360d descrambler: check for key validity 2014-06-12 17:38:04 +02:00
Jaroslav Kysela
6574564d9d capmt: allow single key updates again 2014-06-12 17:01:27 +02:00
Jaroslav Kysela
65360e3cb6 descrambler: allow single key updates again 2014-06-12 16:52:52 +02:00
Jaroslav Kysela
0ef22eb78b Revert "cwc: return back the key composition - seems like some CA cards returns only single key"
This reverts commit da05976c32.
2014-06-12 16:51:25 +02:00
Jaroslav Kysela
da05976c32 cwc: return back the key composition - seems like some CA cards returns only single key 2014-06-12 15:10:01 +02:00
Jaroslav Kysela
7f5dff6405 descrambler: unify log messages, some minor logic changes 2014-06-12 10:36:00 +02:00
Jaroslav Kysela
23df6e3d56 mpegts_network_dvb: fix the comment 2014-06-12 09:34:12 +02:00
Jaroslav Kysela
fbe2e384ea descrambler: another key-timing fix 2014-06-12 09:32:52 +02:00
Jaroslav Kysela
afa2088454 capmt: minor fixes (cleanup on socket close) 2014-06-12 09:32:52 +02:00
Jaroslav Kysela
0051f72b78 tsdemux: do not show continuity error in first seconds of streaming
Most hardware stabilizes things after tuning and these messages are
irritating.
2014-06-12 09:32:52 +02:00
Adam Sutton
c05c643737 mpegts: fix some issues with network scanning
mux matching was far too strict and resulted in a failure to update muxes
with new modulations etc... Also frequency changes were not detected, so
there is some attempt to handle greater changes (mostly just DVB-S, could
be extended).

And where ONID/TSID are set, they are compared as an additional check.
I think it's a case of suck it and see, but on my Astra 28.2E scan this
did a nice job of cleaning up (including tying together modded) muxes.
2014-06-11 23:03:52 +01:00
Jaroslav Kysela
50d5b77470 capmt: little optimize the filter 2014-06-11 14:32:36 +02:00
Jaroslav Kysela
33e70e35c2 descrambler: add a timewindow for the odd/even key change 2014-06-11 14:32:19 +02:00
Jaroslav Kysela
8391ac5671 descrambler: small log correction 2014-06-11 12:59:54 +02:00
Jaroslav Kysela
a70a3f5ecd descrambler: be more verbose and little fixes 2014-06-11 12:40:00 +02:00
Jaroslav Kysela
d8e8e664e1 capmt: fix filters and ECM pid check
- EMMs seems work now for modes 3 and 4
2014-06-11 12:39:30 +02:00
Jaroslav Kysela
56196d31b0 mpegts_network: Fix the crash on shutdown (accessing registered but freed timer) 2014-06-11 12:24:47 +02:00
Adam Sutton
59b3d8a706 mpegts network_scan: move scanning structures back to network
This should make things slightly more efficient, I can't remember
now why I made these global in the first place!
2014-06-11 03:36:28 +01:00
Adam Sutton
e2b91b3e37 mpegts network_scan: fix problem with active muxes being re-added to scan Q 2014-06-11 01:03:57 +01:00
Jaroslav Kysela
626d2f01d7 tvhcsa_descramble: remove unused elementary_stream parameter 2014-06-10 23:21:11 +02:00
Jaroslav Kysela
0e29d5acba httpc: use poll to check for the EINPROGRESS state 2014-06-10 23:09:03 +02:00
Adam Sutton
87a232ebb8 mpegts network_scan: fix problems with having multiple networks
previously as soon as any mux failed it would give up assuming nothing else
could be tuned. However just because no tuner was available that could service
that mux doesn't mean there wasn't one that couldn't service another.

The only real issue I can see with this is if we're idle scanning it's possible
due to bad luck to starve muxes of an attempt. We can either rely on random
chance or put some additional weighting based on time? Though that could be
problematic for other reasons.
2014-06-10 21:40:15 +01:00
Jaroslav Kysela
b22336f60c httpc: add checking for NULL scheme and host 2014-06-10 20:14:43 +02:00
Jaroslav Kysela
3b808e72a3 capmt: another 'mode 1' fix 2014-06-10 19:53:51 +02:00
Jaroslav Kysela
985f3af0a6 capmt: adapter index fix for 'mode 1' 2014-06-10 18:39:05 +02:00
Jaroslav Kysela
6fc3a46810 Makefile: Simplify (and probably fix) the ffdecsa rules 2014-06-10 18:29:38 +02:00
perexg
4b4eb4d7c9 Merge pull request #422 from dmarion/osx
2 fixes to make it build-able on OS X
2014-06-10 18:19:45 +02:00
Damjan Marion
a2fe8f50db capmt: fix capmt_pid_remove() by removing extra semicolon
Thanks to clang for notifying this.
2014-06-10 18:07:54 +02:00
Damjan Marion
d1c04df5a4 fix building on OS X and FreeBSD 2014-06-10 18:03:50 +02:00
Jaroslav Kysela
eaec1c216c httpc: fix for the previous commit 2014-06-10 15:07:58 +02:00
Jaroslav Kysela
900b2f0a80 httpc: Add EINPROGRESS workaround for OSX 2014-06-10 15:02:34 +02:00
Jaroslav Kysela
96d2ee5a79 capmt: fix compilation without linuxdvb support 2014-06-10 14:51:14 +02:00
Jaroslav Kysela
3a13aa34ea mpegts_mux_start: follow weight handling as for service, fix errors 2014-06-10 14:42:11 +02:00
Jaroslav Kysela
92ca7963f2 service: find the tuner/source with the lowest weight for the override action 2014-06-10 14:23:18 +02:00
Jaroslav Kysela
8d9608b611 mpegts: Add extra weight for inputs with more subscribers
This simple code assures that the inputs having more subscribers
will be selected after ones with less subscribers.
2014-06-10 14:14:46 +02:00
Jaroslav Kysela
63dd191bd2 recode mpegts_mux_start() to follow rules as service_find_instance() 2014-06-10 14:14:46 +02:00
Jaroslav Kysela
521c49e14b service: handle input priority better
Ensure, that inputs with higher priorities are preferred.
The decision line is:

1) re-use input if the in-use mux matches
2) use a free input with highest priority
3) cancel the mux/input with smallest weight and use it for new
2014-06-10 14:14:46 +02:00
Jaroslav Kysela
2be0f84f0f capmt: fix wrong free() call 2014-06-10 14:02:37 +02:00
Jaroslav Kysela
2a4d765e1c descrambler: move some of the reader logic to the common code 2014-06-10 14:02:37 +02:00
Jaroslav Kysela
11bd63d590 capmt: fix the mutex deadlock in capmt_destroy() 2014-06-10 14:02:37 +02:00
Jaroslav Kysela
81dd4d1dd0 descrambler: add time-based check for valid ECM key responses 2014-06-10 14:02:36 +02:00
Jaroslav Kysela
5eb3255186 descrambler: use buffer to make streaming of scrambled streams faster 2014-06-10 14:02:36 +02:00
Jaroslav Kysela
476d8b77b8 service.h: remove unused variable 2014-06-10 14:02:36 +02:00