Commit graph

2665 commits

Author SHA1 Message Date
Andreas Öman
9338b9529e service: Plug memory leak 2012-11-07 09:29:33 +01:00
Andreas Öman
a2cf987afa subscriptions: Plug possible memleak 2012-11-07 09:29:33 +01:00
Andreas Öman
2ef7dac597 Plug memory leak 2012-11-06 12:49:06 +01:00
Andreas Öman
0d8d8a2da1 h264parser: Treat SPS and PPS id as unsigned
There is a change of crash otherwise if we get a corrupt bitstream
2012-11-05 14:48:20 +01:00
Andreas Öman
d5deb9d19d HTSP: Handle partial write()s 2012-11-05 13:05:52 +01:00
Adam Sutton
a9692b9514 Restructure dvb adapter init to cope with configuration that is needed before we can decide whether to use full mux mode or not. 2012-11-05 10:38:05 +00:00
Adam Sutton
8f44e28535 Minor formatting fix. 2012-11-05 10:17:34 +00:00
Adam Sutton
03ff972756 Fix #1377 - check for EOVERFLOW when reading from DVB device.
This can be returned as a result of a failure to read quickly enough from
the DVR device. This appears to happen quite regularly on channel zap for
certain cards. It's non-fatal and the system will auto recover immediately.

For now I've left the exit on other error in, but have added an error
message so we know its happening (the biggest problem was this was happening
silently before).

This may also relate to #1134, so might be worth back porting to 3.2.
2012-11-05 10:13:24 +00:00
John Törnblom
4515f5a2d1 fixed file suffix for pass-through recording 2012-11-01 13:49:54 +01:00
Adam Sutton
3cd6336314 Issue #1376 - add option to manually disable full mux rx.
It appears this mode can cause problems on some systems, particulary
related to USB tuners. Can cause high CPU load.
2012-10-31 17:29:42 +00:00
Tiago Pierezan Camargo
7367f713c1 [PR-173] Stype fix for NET POA Cabo network 2012-10-31 13:58:22 +00:00
Alexey I. Froloff
1334869bf0 [PR-172] Fix compilatioin issues on OpenWRT
Fix SHA1_* function names
Fix unused variables and functions
2012-10-31 13:58:18 +00:00
Adam Sutton
fbe2db0710 Refs #1355, Refs #1356 - Fix problem with DVR dup detect.
I have completely removed global duplicate detection at this stage until
such time as I can do things properly. This means a user can ALWAYS manually
override and force a recording of a show.

For now duplicate detection only exists within the context or a series
link. So it will only record the "first?" instance of a given episode in
a give series link.

This is still a bit of a hack until I provide the user with the ability
to control the configuration and implement all the hooks properly.
2012-10-31 13:40:35 +00:00
Adam Sutton
31b1d5b57d Refs #1226 - remove block to creating empty channels. 2012-10-31 13:28:14 +00:00
Adam Sutton
a3a917cc29 Ref #1352 - check return value of setuid/setgid calls.
Also slightly changed the logic so its possible to fork as non-root, though
you must explicitly list your username and group with -u and -g as I do not
want to break built in defaults for compatibility.
2012-10-31 13:18:46 +00:00
Adam Sutton
6b2429bad7 Fix mistake in dd_progid parsing. 2012-10-31 13:18:40 +00:00
Adam Sutton
d761985f3b Add protection to stop opentv crashing on bad title descriptor. Relates to #1367. 2012-10-30 17:28:10 +00:00
Adam Sutton
f83df17715 Added quantal and removed hardy from latest dev builds. 2012-10-30 17:28:09 +00:00
Andreas Öman
b1760d684f HTSP: Add possibility to subscribe to a channelName 2012-10-30 10:37:04 +01:00
Andreas Öman
2ac1b249df Don't pass uninitialized mem to epoll_ctl() 2012-10-30 10:36:43 +01:00
John Törnblom
aecded7c4e fix timing issues with rawtsinput (file input). 2012-10-27 19:14:39 +02:00
John Törnblom
174bc64c69 HTTP: make sure we don't send (and deref) packets before the mime type etc has been send 2012-10-25 19:37:34 +02:00
Andreas Öman
64b2e51c42 HTSP: Rename htsp.c to htsp_server.c 2012-10-25 13:25:06 +02:00
Andreas Öman
c8e56a2865 Plug some memory leaks 2012-10-25 13:06:55 +02:00
Andreas Öman
0bde079fda http: Let full mux dump use the normal straeming code
Fix some locking issues in the http streaming code
2012-10-25 13:06:55 +02:00
Andreas Öman
47049eaa21 dvb: Run adapters in full mux mode if we can 2012-10-25 13:06:05 +02:00
Andreas Öman
e3f4768e5c dvb: Stub the raw_setup() 2012-10-25 13:06:05 +02:00
Andreas Öman
9bf78ac405 dvb: For full mux streaming, send more than one TS block in each packet 2012-10-25 13:06:05 +02:00
Andreas Öman
4727974500 HTSP: Include video frame duration in streamingStart message 2012-10-25 13:06:05 +02:00
Andreas Öman
0634ac207d dvb: Stay with filtered hw for now 2012-10-25 13:06:05 +02:00
Andreas Öman
d97f19f963 rawtsinput: Handle stream delete 2012-10-25 13:06:05 +02:00
Andreas Öman
da06305864 Fix incorrect bit arithmetic causing service restart to not correctly trig 2012-10-25 13:06:05 +02:00
Andreas Öman
9f0de04a7b dvb: Add support for grabbing entire mux directly via HTTP 2012-10-25 13:06:05 +02:00
Andreas Öman
f4fc438031 dvb: Add table parsing when in raw mode 2012-10-25 13:06:05 +02:00
Andreas Öman
43509ecf02 Add new dvb input method: raw
Receives all content from a mux and filter it in tvheadend

Remove dumpmux feature
2012-10-25 13:06:05 +02:00
Andreas Öman
c26216ccba dvb: Move low level DVB table reception to dvb_input_filtered.c 2012-10-25 13:06:05 +02:00
Andreas Öman
7416dabc5f Remove dmx_sct_filter_params from all over the place 2012-10-25 13:06:05 +02:00
Andreas Öman
65a8fa5f28 dvb: Move out PID specific stuff from dvb_service.c 2012-10-25 13:06:05 +02:00
Andreas Öman
cd52d7c216 Don't have code with side effects in assert()
Including code with side effects in assert() is bad because
it won't be executed if compiled with NDEBUG
2012-10-25 13:06:05 +02:00
Andreas Öman
847b8463b5 Rename dvb_transport.c -> dvb_service.c 2012-10-25 13:06:05 +02:00
Andreas Öman
8a86b6fa8a Rename dvb_transport_ -> dvb_service_ for better consistency 2012-10-25 13:06:05 +02:00
Andreas Öman
d49422a899 tsfix: Mask timestamps with PTS_MASK
When debugging the tsfix code a developer can now narrow PTS_MASK
to force wrap to happen much more frequently
2012-10-25 13:06:04 +02:00
John Törnblom
bc323d1932 some cosmetics to the "active subscription" list when DVR is being used. 2012-10-25 12:40:52 +02:00
John Törnblom
e049f5dae1 show user-agent, username and ip in the subscription status for HTTP subscriptions 2012-10-25 12:40:45 +02:00
John Törnblom
83a631e6d8 try to handle reconfiguration fo sources properly 2012-10-24 15:44:42 +02:00
John Törnblom
0cbaa02441 decoupled the muxer from the service link. 2012-10-24 15:32:06 +02:00
John Törnblom
dcfaad1a41 send the packet type to muxer along with the actual packet so we can check if the cast is correct 2012-10-24 15:25:43 +02:00
John Törnblom
deea444c86 added pmt pid to streaming_start 2012-10-24 14:22:00 +02:00
John Törnblom
ae4f5f44ff added source type (MPEGTS etc) to source_info. 2012-10-24 14:21:10 +02:00
Mariusz Bialonczyk
8191e132f8 [PR-167] campt: support for OSCam; fixes
capmt: add oscam mode to the webui and config
capmt: add support for oscam-dvbapi (boxtype=pc)
capmt: add multiple adapter support in oscam mode
capmt: fix sending provider id in PMT data
capmt: fix handling multiple CAIDs on the same ECM pid
2012-10-23 14:05:14 +01:00