Commit graph

248 commits

Author SHA1 Message Date
Ian
401608cc69 Refactor of dvr config page and options; addition of user options for file and directory permissions throughout. 2014-03-27 11:22:32 +00:00
Adam Sutton
6482d33ba9 muxer dvr: fix configuration passing to reduce potential for error
This should fix 
2014-03-21 14:56:46 +00:00
Jaroslav Kysela
ed45ab7224 Add cache scheme selection for DVR to reduce system resources 2014-03-15 18:07:14 +01:00
Adam Sutton
7900bbcba3 htsp dvr access: some updates to PR , plugs a few holes in access checks 2014-03-13 20:53:15 +00:00
Adam Sutton
9722e42a98 pvr: change the directory permissions to more sane value
This might need reviewing and making configurable, but this is definitely
a more sane starting point than the original.
2014-03-07 20:43:13 +00:00
Jaroslav Kysela
c07824a410 Graceful exit
It's necessary to do serious checks for the memory leaks using
tools like valgrind. This patch tries to implement a graceful
exit for all tvheadend components and free allocated memory.

Also, some memory leaks were fixed.
2014-02-17 13:13:14 +01:00
Adam Sutton
20154413ab dvr: some fixes from kendrak24 for my changes to PR 2014-01-28 08:43:06 +00:00
Adam Sutton
c2ecbf4185 dvr: clean up the new cutpoint code 2014-01-27 09:35:09 +00:00
kendrak24
d9bc3b6d41 Added EDL support over HTSP 2014-01-26 18:05:00 +01:00
Adam Sutton
e4ae172467 muxer pass: some re-org, UI fixup and general tidying of PMT/PAT rewrite
I've made the PAT/PMT rewriting indepedently configured, currently I think
the multi-packet PMT is a limitation we need to look into.
2013-12-01 00:11:18 +00:00
Dave Chapman
6df74d3d75 Merge relevant parts of PR#255 to complete the implementation of PAT/PMT passthrough, with the option of rewriting the PAT and PMT so the PAT only contains a reference to the included service, and the PMT only contains references to the included streams. This still needs more work - the PMT PID is being passed to the muxer as zero the first time a channel is streamed after tvh starts, and the PMT rewrite code fails if the PMT spans multiple TS packets 2013-12-01 00:11:17 +00:00
Adam Sutton
0f01bd7fe8 Merge remote-tracking branch 'origin/pr/297' 2013-11-16 11:55:31 +00:00
Adam Sutton
5990951e64 migrate: Some updates to the migration script and minor correction to DVR conf 2013-11-16 11:43:26 +00:00
Adam Sutton
7bf4b17bce dvr: fix processing of autorec weekdays field 2013-10-11 18:44:28 +01:00
Adam Sutton
cc478b3ba4 dvr: fix some problems surrounding channel configuration
This was caused by change to using UUID as key etc.. and this not being
properly updated both within the UI and in at least one place in the code.
2013-10-11 16:47:59 +01:00
Adam Sutton
8901334cc0 misc: Remove memory leaks and other anomalies
Many of these are somewhat redundant now, as I've suppressed many of the
warnings as they're false positives. However the changes, such as added
a detach flag to tvhthread_create(), have been kept anyway.
2013-10-11 13:41:46 +01:00
Adam Sutton
db1656314f channel: remove direct usage of ch_name
This is because the field can now be NULL and there were places where this
was not properly checked. So now a function call channel_get_name() should
be used instead and is garaunteed to return non-NULL.

In addition to this there is a nice added benefit. You can NOT set the name,
and it will automatically pull the name from the first available service. This
will not be persistent (part of config) unless you change that name and save
from the UI. This means if the service name changes, so will the channel name.

However on that last point there will not be, currently, any message sent to
the clients (HTSP) to inform them of such a change. So there might be some lag
in getting the update.
2013-10-10 11:12:37 +01:00
Damian Gołda
31678f7380 Option do add subtitle (from EPG) to recording filename and add episode number before recording date. 2013-10-08 13:41:30 +02: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
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
2b909fe580 debug: add wrapper for pthread_create to add a meaningful name
This is very useful for debugging. Though tbh I need to do this code
properly.
2013-09-05 22:19:25 +01:00
Adam Sutton
d91c02d520 Merge branch 'feature/dvb-rewrite'
Conflicts:
	Makefile
	configure
	src/dvb/diseqc.h
	src/dvb/dvb.h
	src/dvb/dvb_adapter.c
	src/dvb/dvb_fe.c
	src/dvb/dvb_input_filtered.c
	src/dvb/dvb_tables.c
	src/input/mpegts/dvb_psi.c
	src/input/mpegts/iptv/iptv_mux.c
	src/iptv_input.c
	src/service_mapper.h
	src/webui/static/app/tvadapters.js
	src/webui/webui.c
2013-08-28 17:08:39 +01:00
Adam Sutton
65c304fb9a channel: migrated channel_t to an idnode
Also since the channel name is no longer unique various other things have
had to be updated.
2013-08-22 15:15:08 +01:00
Benny Morgan
94be891496 - Fix memory leak - cfg is was free'd allocated in dvr_config_create - line 1218 2013-06-30 21:11:22 +02:00
Dave Chapman
6cb8eaae8d Only compare the serieslink field when comparing an event with a serieslink auto recording. Previously tvh was also comparing other fields, including title, which broke some serieslink recordings (e.g. if the episodes had unique titles). Fix by adamsutton. 2013-06-17 22:06:05 +01:00
Adam Sutton
a686fe34d2 csa: started to rework the descrambling support 2013-06-17 12:38:36 +01:00
Bernhard Froehlich
1a458ae763 Fix warning because of wrong time_t format specifier on FreeBSD i386
and fix places where format specifier is hardcoded for time_t and
correctly use PRItime_t instead.

src/epg.c:1412: warning: format '%ld' expects type 'long int', but argument 7 has type 'time_t'
src/dvr/dvr_rec.c:596: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
src/epggrab/module/eit.c:536: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'time_t'
2013-05-24 21:34:53 +02:00
Adam Sutton
9abf21525a dvr: attempt to stop new DVR code creating false entries 2013-04-10 11:45:32 +01:00
Adam Sutton
0b01dc138a dvr/epg: added some more debug (trace) to look at what might be going on 2013-04-07 14:01:59 +01:00
Adam Sutton
ab7302ec99 dvr: another minor improvement to epg/dvr relinking
Realised that we don't need to update things that are no longer
scheduled (i.e. complete).
2013-03-08 21:59:37 +00:00
Adam Sutton
6c6e0541be dvr: ensure unlinked entry updates are properly handled
previously it updated things that were already linked and also on
different channels entirely.
2013-03-08 21:56:11 +00:00
Adam Sutton
a0a7539a73 Fix - dvr: ensure that DVR entries are not removed when EPG is updated
previously an overlapping (replacement) event could result in the DVR
entry being completely removed. This will now ensure that the original
entry is left in place (with just info and times).

It will also try and re-match with an EPG entry as and when it can.
2013-03-08 21:23:44 +00:00
Adam Sutton
5dd5826921 Fix - only remove "unsafe" characters if configured to do so. 2013-02-03 20:13:55 +00:00
Adam Sutton
ce672631dc dvr: remove bad LIST_REMOVE() call if entry has no channel 2013-02-03 20:13:55 +00:00
Adam Sutton
665ca55b4e dvr: don't run postproc script unless there is actually a file to process 2013-02-01 21:02:03 +00:00
Adam Sutton
43ae54c062 Fix - dvr: simplify filename cleanup 2013-01-31 11:30:09 +00:00
Adam Sutton
8f5d8fe9bf dvr: ensure subsystems are notified when dvr starts (and filename is set) 2013-01-31 11:30:09 +00:00
Adam Sutton
4335797e53 Fix - dvr: some minor corrections to PR code
ensure that recordings are properly loaded in the event no channel
exists and that the internal channel name is preferred not the DE
on.
2013-01-31 11:30:02 +00:00
Adam Sutton
ef5ab4bae2 Merge remote-tracking branch 'origin/pr/236' 2013-01-31 10:35:51 +00:00
Adam Sutton
51fa4bb0e3 dvr: stop possible NULL ptr if messing about with config 2013-01-31 10:20:17 +00:00
John Törnblom
8754b14d50 put tsfix before the global headers. fixes problems where recordings could loose tracks 2013-01-25 21:21:52 +01:00
Kristofer Karlsson
f6ee30c3c6 Keep recordings when channel is deleted
When a channel is deleted, don't delete all existing recordings.
2013-01-25 09:04:50 +01:00
Adam Sutton
bda8422d35 Fix - dvr: ensure genre is not lost on autorec update 2013-01-19 20:02:42 +00:00
Adam Sutton
f021ec9592 dvr: stop inotify code asserting, output error instead. 2013-01-19 19:49:20 +00:00
Adam Sutton
97c739b572 Fix - escape regexp special chars before adding autorec rule.
This stops autorec rules entered from event failing to detect events.
2013-01-19 19:49:19 +00:00
Dave Chapman
07c75503cc Protect dvr_inotify_init() in the same way as the other dvr_inotify_* functions 2013-01-19 19:01:52 +00:00
Adam Sutton
44932dd601 Merge remote-tracking branch 'origin/pr/226' 2013-01-15 16:29:51 +00:00
Adam Sutton
a3ff11f782 timeshift: add periodic status message indicating buffer state etc. 2013-01-15 11:23:46 +00:00
BtbN
71b09488a1 .c files are not executable 2013-01-15 00:58:12 +01:00
Adam Sutton
accc01db56 Fix - add inotify monitoring of recordings.
Should a recording be moved (within same dir) the DVR DB will be
updated.

Should it be moved (out of directory) or deleted entirely, it will
simply be marked as missing.

The parent directories are also monitored should they be moved
or deleted.
2013-01-11 11:13:29 +00:00