Adam Sutton [Thu, 27 Dec 2012 00:48:14 +0000 (00:48 +0000)]
Fix #1459 - fix removal of all autorec recordings on startup
There were 2 issues here:
- recent changes meant that recordings were purged on every startup
- long standing issue meant complete recordings were removed on
removal of an autorec rule (which I don't think was intended).
(cherry picked from commit d23f60b0311abc3d0b516bbd7ab5163e7cdfdc43)
John Törnblom [Sat, 17 Nov 2012 14:35:40 +0000 (15:35 +0100)]
muxers: make sure the default file descriptor for the matroska muxer is an invalid one, not stdout.
(cherry picked from commit 70f0801c9b30e0704835f0a085aaecb8c7a562f5)
John Törnblom [Sat, 17 Nov 2012 14:32:23 +0000 (15:32 +0100)]
muxers: make sure the default file descriptor for the passthrough muxer is an invalid one, not stdout.
(cherry picked from commit 442d69544530fb0deea4a524512db0a6a3899f1f)
Adam Sutton [Tue, 4 Dec 2012 20:13:16 +0000 (20:13 +0000)]
Fix #1423 - ensure that XMLTV grabber search does not crash.
It appears that if paths are duplicated in the PATH env variable the
internal search algorithm failed to detect this and could crash due to
an assert in the internal modlue registration code.
(cherry picked from commit 563b8f8c51a4fa0ee33c0ae8786f3fec84f70b4d)
John Törnblom [Fri, 16 Nov 2012 15:27:29 +0000 (16:27 +0100)]
Fix #1266 - make sure there is metadata available before atempting to mux it with a recording
(cherry picked from commit ed5d7e4977f0090f215898a297ae8906d7e9e879)
Andreas Öman [Thu, 8 Nov 2012 13:21:39 +0000 (14:21 +0100)]
htsp: Plug possible memory leak at HTSP disconnect
If subscriber is slow we will leak memory because buffered packets
will not be free'd upon HTSP session close
(cherry picked from commit 683b0f9c8bf4feaa0f3a17b1114b519005072e30)
Adam Sutton [Mon, 5 Nov 2012 10:13:24 +0000 (10:13 +0000)]
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).
Adam Sutton [Wed, 31 Oct 2012 13:40:35 +0000 (13:40 +0000)]
Fix #1355, #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.
(cherry picked from commit fbe2db07101806acdfe9a667ff9daf6766b1a199)
Adam Sutton [Wed, 31 Oct 2012 13:17:07 +0000 (13:17 +0000)]
Fix #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.
(cherry picked from commit a3a917cc2947822abd09f57bbabe4620f2b4271c)
Andreas Öman [Fri, 19 Oct 2012 08:50:22 +0000 (10:50 +0200)]
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
(cherry picked from commit cd52d7c2169f85b7bbfface42bff8f451d8f9929)
John Törnblom [Thu, 11 Oct 2012 21:06:52 +0000 (23:06 +0200)]
changed the muxer api a bit, the pkt packet type can differ and needs to be casted (from void*).
(cherry picked from commit d84f92028e4423a5ef215f1b35e31036002d8308)
Adam Sutton [Fri, 12 Oct 2012 10:25:48 +0000 (11:25 +0100)]
Change eventDeleted to eventDelete to be consistent. Also minor refactoring to mirror doc section re-ordering.
(cherry picked from commit 626bff4245240d3dddb761b8ff71301b96bfa115)
Adam Sutton [Wed, 10 Oct 2012 15:48:32 +0000 (16:48 +0100)]
[PR-153] Generalise the PL specific portions of PR-153
The original patch provided a very PL specific patch, this has now
been expanded to be more general and work better with the previous
charset PR.
(cherry picked from commit 495247bd677a1c733e9f1ebe964ba2ad359f9433)
[PR-153] Provide automatic charset overrides for certain services
Certain services on some networks are transmitted with incorrect
charset encodings. The user has the ability to manually override
these, but this provide initial defaults for known bad services.
Adam Sutton [Wed, 10 Oct 2012 11:52:07 +0000 (12:52 +0100)]
Add the concept of onid into the DVB structures, this will help overcome a few minor issues.
(cherry picked from commit 1cc67b75e8f7a90ef0d6aaaf88cf5cf633c8c840)
Johan Abbors [Tue, 2 Oct 2012 20:30:27 +0000 (23:30 +0300)]
Fix version for launchpad builds using recipes
Git operations are not allowed in launchpad, thus the version number
must be extracted from the changeleg.
(cherry picked from commit 1a7e2b489f56f59e47a7dfd41027084ded5dcbc4)
Adam Sutton [Tue, 9 Oct 2012 14:09:38 +0000 (15:09 +0100)]
Fix duplicate mux issues by pushing all mux freq to 1KHz boundary. Fixes #1310.
This is really considered a hack, it will be replaced with a better internal
DVB structure in 3.4.
(cherry picked from commit afd468ef83cead7b2a67dc927bf1b67944e9c7fe)
Jacek Tomasiak [Sun, 30 Sep 2012 17:11:06 +0000 (19:11 +0200)]
[PR-155] Change dvb charset to allow proper overriding.
dvb_charset field (in service UI config) now overrides any DVB provided
values rather than simply acting as a default for where values are not
specified.
This helps fix problems both where providers fail to specify the charset
(and ISO6937 is not used) and also where the simply specify the wrong
charset entirely.
(cherry picked from commit aff490c6b29d25490c42be723554a72faadea48c)