]> git.ipfire.org Git - thirdparty/tvheadend.git/log
thirdparty/tvheadend.git
6 years agosatip client: add DVB-S2 ISI/PLS code support for minisatip (multistream)
Jaroslav Kysela [Fri, 12 Oct 2018 08:15:41 +0000 (10:15 +0200)] 
satip client: add DVB-S2 ISI/PLS code support for minisatip (multistream)

6 years agodvb-c2: add support for data slice and plp
Jaroslav Kysela [Thu, 11 Oct 2018 19:05:05 +0000 (21:05 +0200)] 
dvb-c2: add support for data slice and plp

6 years agolinuxdvb: fix again the PLS code skip when the default value is used
Jaroslav Kysela [Thu, 18 Oct 2018 06:58:18 +0000 (08:58 +0200)] 
linuxdvb: fix again the PLS code skip when the default value is used

6 years agolinuxdvb: set PLS code only when it differs from 1, fixes #5266
Jaroslav Kysela [Wed, 17 Oct 2018 11:28:54 +0000 (13:28 +0200)] 
linuxdvb: set PLS code only when it differs from 1, fixes #5266

6 years agoscanfile: add support for PLS_CODE and PLS_MODE, fixes #5305
Jaroslav Kysela [Wed, 31 Oct 2018 19:03:36 +0000 (20:03 +0100)] 
scanfile: add support for PLS_CODE and PLS_MODE, fixes #5305

6 years agodvb_mux_conf_init: set default pls_mode to GOLD, fixes #5328
Jaroslav Kysela [Wed, 14 Nov 2018 22:24:59 +0000 (23:24 +0100)] 
dvb_mux_conf_init: set default pls_mode to GOLD, fixes #5328

6 years agosatip: rtp - improve udp_multisend_send() error / full buffer condition checking...
Jaroslav Kysela [Fri, 9 Nov 2018 19:10:17 +0000 (20:10 +0100)] 
satip: rtp - improve udp_multisend_send() error / full buffer condition checking, fixes #5319

6 years agosatip server: fix the weight handling for the scrambled slave subscriptions, fixes...
Jaroslav Kysela [Wed, 7 Nov 2018 21:48:55 +0000 (22:48 +0100)] 
satip server: fix the weight handling for the scrambled slave subscriptions, fixes #5314

6 years agohttp: fix http_access_verify_channel(), fixes #5317
Jaroslav Kysela [Thu, 8 Nov 2018 14:45:55 +0000 (15:45 +0100)] 
http: fix http_access_verify_channel(), fixes #5317

6 years agosatip server: fix pmt rewrite (wrong CC), use sbuf as the internal data buffer
Jaroslav Kysela [Wed, 7 Nov 2018 16:04:35 +0000 (17:04 +0100)] 
satip server: fix pmt rewrite (wrong CC), use sbuf as the internal data buffer

6 years agosatip server: fix memory leak for the slave service subscription, fixes #5314
Jaroslav Kysela [Wed, 7 Nov 2018 15:10:06 +0000 (16:10 +0100)] 
satip server: fix memory leak for the slave service subscription, fixes #5314

6 years agowebui: more tooltips for help buttons!
mpmc [Wed, 24 Oct 2018 13:00:59 +0000 (14:00 +0100)] 
webui: more tooltips for help buttons!

6 years agotcp: fix wrong used variable initialization, issue #5290
Jaroslav Kysela [Wed, 24 Oct 2018 17:57:29 +0000 (19:57 +0200)] 
tcp: fix wrong used variable initialization, issue #5290

6 years agodoozer: another cosmic fix
Jaroslav Kysela [Wed, 24 Oct 2018 17:42:56 +0000 (19:42 +0200)] 
doozer: another cosmic fix

6 years agodoozer: try to fix cosmic builds
Jaroslav Kysela [Wed, 24 Oct 2018 14:32:22 +0000 (16:32 +0200)] 
doozer: try to fix cosmic builds

6 years agoservice mapper: fix mono2sec -> sec2mono thinko
Jaroslav Kysela [Mon, 22 Oct 2018 10:36:22 +0000 (12:36 +0200)] 
service mapper: fix mono2sec -> sec2mono thinko

6 years agodvr: fix the dvr_rec_subscribe cleanup
Jaroslav Kysela [Mon, 22 Oct 2018 07:06:12 +0000 (09:06 +0200)] 
dvr: fix the dvr_rec_subscribe cleanup

6 years agodvr: cleanup the error path in dvr_rec_subscribe()
Jaroslav Kysela [Mon, 22 Oct 2018 06:48:20 +0000 (08:48 +0200)] 
dvr: cleanup the error path in dvr_rec_subscribe()

6 years agodvr_rec: fix early access_destroy
Luis Alves [Sun, 21 Oct 2018 23:20:42 +0000 (00:20 +0100)] 
dvr_rec: fix early access_destroy

6 years agoservice mapper: implement time watchdog (cca 30 seconds)
Jaroslav Kysela [Sun, 21 Oct 2018 18:17:19 +0000 (20:17 +0200)] 
service mapper: implement time watchdog (cca 30 seconds)

6 years agodoozer: add raspbian and cosmic
mpmc [Wed, 17 Oct 2018 22:57:24 +0000 (23:57 +0100)] 
doozer: add raspbian and cosmic

6 years agobintray: disable uploads :-(
Jaroslav Kysela [Wed, 17 Oct 2018 11:24:11 +0000 (13:24 +0200)] 
bintray: disable uploads :-(

6 years agoRevert "FreeBSD: Fix recv problem if no data received."
Jaroslav Kysela [Tue, 16 Oct 2018 14:51:00 +0000 (16:51 +0200)] 
Revert "FreeBSD: Fix recv problem if no data received."

This reverts commit 3895c923a3a959da05080831b8146c09ed143b00.

6 years agolinuxdvb: support properly PLS ROOT
Jaroslav Kysela [Sat, 13 Oct 2018 10:36:05 +0000 (12:36 +0200)] 
linuxdvb: support properly PLS ROOT

6 years agotsfix: fix dts calc (fixes issue #5252)
Luis Alves [Fri, 12 Oct 2018 12:14:52 +0000 (13:14 +0100)] 
tsfix: fix dts calc (fixes issue #5252)

6 years agompegts input: clear correctly mux's last pid cache in mpegts_input_close_pid()
Jaroslav Kysela [Fri, 12 Oct 2018 12:42:21 +0000 (14:42 +0200)] 
mpegts input: clear correctly mux's last pid cache in mpegts_input_close_pid()

6 years agolinuxdvb frontend: add support for DTV_SCRAMBLING_SEQUENCE_INDEX - dvbapi 5.11
Jaroslav Kysela [Thu, 11 Oct 2018 14:13:42 +0000 (16:13 +0200)] 
linuxdvb frontend: add support for DTV_SCRAMBLING_SEQUENCE_INDEX - dvbapi 5.11

6 years agosatip client: do not add internal PIDs from services when full mux is not supported...
Jaroslav Kysela [Tue, 9 Oct 2018 06:12:03 +0000 (08:12 +0200)] 
satip client: do not add internal PIDs from services when full mux is not supported, fixes #5245

6 years agoMakefile.ffmpeg: more sync with master v4.2.7
Jaroslav Kysela [Mon, 8 Oct 2018 15:25:42 +0000 (17:25 +0200)] 
Makefile.ffmpeg: more sync with master

6 years agoMakefile.ffmpeg: fix libx265 build
Jaroslav Kysela [Mon, 8 Oct 2018 15:17:00 +0000 (17:17 +0200)] 
Makefile.ffmpeg: fix libx265 build

6 years agoMakefile.ffmpeg: fix libvpx download
Jaroslav Kysela [Mon, 8 Oct 2018 15:06:24 +0000 (17:06 +0200)] 
Makefile.ffmpeg: fix libvpx download

6 years agotransifex intl update
Jaroslav Kysela [Mon, 8 Oct 2018 14:54:22 +0000 (16:54 +0200)] 
transifex intl update

6 years agoMakefile.ffmpeg: update to ffmpeg 3.4.4
Jaroslav Kysela [Mon, 8 Oct 2018 14:44:39 +0000 (16:44 +0200)] 
Makefile.ffmpeg: update to ffmpeg 3.4.4

6 years agopcloud: fix publink_download
Jaroslav Kysela [Mon, 8 Oct 2018 12:30:08 +0000 (14:30 +0200)] 
pcloud: fix publink_download

6 years agowebui: epg.js - fix typo
Jaroslav Kysela [Mon, 8 Oct 2018 12:06:56 +0000 (14:06 +0200)] 
webui: epg.js - fix typo

6 years agowebui: replace ... with ellipsis …
mpmc [Fri, 5 Oct 2018 11:38:09 +0000 (12:38 +0100)] 
webui: replace ... with ellipsis …

6 years agowebui: add tooltip to help button
mpmc [Fri, 5 Oct 2018 11:33:02 +0000 (12:33 +0100)] 
webui: add tooltip to help button

6 years agodoozer: fix the jessie builds (update urllib3/contrib/pyopenssl.py)
Jaroslav Kysela [Mon, 8 Oct 2018 11:56:41 +0000 (13:56 +0200)] 
doozer: fix the jessie builds (update urllib3/contrib/pyopenssl.py)

6 years agopcloud: add own ca bundle
Jaroslav Kysela [Sun, 7 Oct 2018 18:52:47 +0000 (20:52 +0200)] 
pcloud: add own ca bundle

6 years agoRevert "satip: pass specinv by default for DVB-C, fixes #5231"
Jaroslav Kysela [Sun, 7 Oct 2018 17:06:22 +0000 (19:06 +0200)] 
Revert "satip: pass specinv by default for DVB-C, fixes #5231"

This reverts commit 07da60659ad31f42307f6e7f1ee1e4517e6b5958.

6 years agochannel: fix description for the user icon
Jaroslav Kysela [Fri, 5 Oct 2018 07:57:44 +0000 (09:57 +0200)] 
channel: fix description for the user icon

6 years agoiptv: fix channel icon handling, fixes #5240
Jaroslav Kysela [Fri, 5 Oct 2018 07:53:50 +0000 (09:53 +0200)] 
iptv: fix channel icon handling, fixes #5240

6 years agoparser teletext: a little more fix for duplicate subtitles, fixes #3996
Jaroslav Kysela [Thu, 4 Oct 2018 15:54:52 +0000 (17:54 +0200)] 
parser teletext: a little more fix for duplicate subtitles, fixes #3996

6 years agoparser teletext: try to avoid duplicate subtitles, fixes #3996
Jaroslav Kysela [Thu, 4 Oct 2018 07:04:28 +0000 (09:04 +0200)] 
parser teletext: try to avoid duplicate subtitles, fixes #3996

6 years agoMakefile: another fix for the static build
Jaroslav Kysela [Wed, 3 Oct 2018 11:05:02 +0000 (13:05 +0200)] 
Makefile: another fix for the static build

6 years agodoozer: add missing python-requests and manually update certs for older distros
mpmc [Tue, 2 Oct 2018 17:00:31 +0000 (18:00 +0100)] 
doozer: add missing python-requests and manually update certs for older distros

6 years agoxmltv: Add option to save epgdb after xmltv import.
E.Smith [Tue, 2 Oct 2018 13:50:03 +0000 (14:50 +0100)] 
xmltv: Add option to save epgdb after xmltv import.

The "periodic save database" means that for xmltv you can
import your daily listings, crash, restart, and not have xmltv
data since the periodic epgdb timer has not elapsed.

So, add an option so the user can save the database after the
import has completed, assuming changes occurred.

This save is delayed by a couple of minutes in case the user
is importing from several different xmltv guides, in which case
the save occurs after the last import.

6 years agoMakefile: static libs - improve rules
Jaroslav Kysela [Tue, 2 Oct 2018 16:37:43 +0000 (18:37 +0200)] 
Makefile: static libs - improve rules

6 years agobintray.py: remove staticlib from tidy
Jaroslav Kysela [Tue, 2 Oct 2018 13:35:09 +0000 (15:35 +0200)] 
bintray.py: remove staticlib from tidy

6 years agoFreeBSD: Add libunwind trap support for FreeBSD only.
E.Smith [Mon, 1 Oct 2018 17:05:26 +0000 (18:05 +0100)] 
FreeBSD: Add libunwind trap support for FreeBSD only.

Although the existing backtrace works correctly on Linux, on
FreeBSD it frequently generates a backtrace with completely
wrong function names. (FreeBSD 11.2, current latest version).

For example, making htsp_build_dvrentry crash with SEGV, it
would either not generate a stacktrace or would generate a
backtrace of:
-pthread_sigmask
-pthread_getspecific
-service_remove_unseen
-htsp_get_subscription_status
-htsp_init
-tcp_server_done
-tvhthread_create.

...instead of the correct backtrace of:
-<signal>
-htsp_build_dvrentry
-htsp_method_async
-htsp_read_loop
-htsp_serve...

So on FreeBSD only, we use libunwind to generate the
backtrace and function names. We explicitly make
libunwind and libexecinfo mutually exclusive since
FreeBSD has both.

Line are logged similar to:
  CRASH: htsp_build_dvrentry+5d (ip=11f659d sp=7fffd8bc3930)

Note that it does not have line numbers since the addr2line
does not appear to work on FreeBSD (even with the original
backtrace code).

An example of the problem with the old backtrace code using
the frame from htsp_method_async from within the tvheadend
traphandler after the retrieval of the stack frames:

(gdb) print frames
$38 = {0x806473954, 0x806472eb2, 0x7ffffffff193, 0x11f1638 <htsp_method_async+1640>, 0x11fe400 <htsp_read_loop+880>, 0x11f58e6 <htsp_serve+502>, 0x11b9b11 <tcp_server_start+401>,
  0x11af45e <thread_wrapper+302>, 0x80646dc06, 0x0 <repeats 91 times>}

(gdb) print dladdr(0x11f1638, &dli)    <--- addr of htsp_method_async from frame 4.
$39 = 1  <--- success

(gdb) print dli
$40 = {dli_fname = 0x7fffffffef97 ".../build.freebsd/tvheadend", dli_fbase = 0x1021000, dli_sname = 0x1044f91 "service_remove_unseen",   <--- but wrong name
    dli_saddr = 0x11eff80 <service_remove_unseen>}   <--- and this is nearest symbol address

(gdb) print htsp_method_async+1640
    $41 = (htsmsg_t *(*)(htsp_connection_t *, htsmsg_t *)) 0x11f1638 <htsp_method_async+1640>   <---but gdb knows the original address is htsp_method_async

(gdb) print service_remove_unseen
    $42 = {void (const char *, int)} 0x11eff80 <service_remove_unseen> <--- and gdb knows sevice_remove_unseen is at the dli_saddr.

By contrast, with libunwind, we get:

(gdb) print buf
$50 = "htsp_method_async", '\000' <repeats 110 times> <--- libunwind detected correct function name

(gdb) where 10  <--- even though our signal has been delivered on its own stack
 #0  traphandler_libunwind () at src/trap.c:162
 #1  0x000000000120cf06 in traphandler (sig=11, si=0x7fffdbbdb860, UC=0x7fffdbbdb4f0) at src/trap.c:221
 #2  0x0000000806673954 in ?? ()
 #3  0x0000000000000000 in ?? ()

(gdb) print ip
$51 = 18814904

(gdb) disass 18814904  <--- and gdb knows that ip address is for the same method as libunwind detected
Dump of assembler code for function htsp_method_async:
   0x00000000011f1150 <+0>:     push   %rbp

6 years agotrap: Allow chdir /tmp even if prctl not supported.
E.Smith [Mon, 1 Oct 2018 15:57:36 +0000 (16:57 +0100)] 
trap: Allow chdir /tmp even if prctl not supported.

Even though prctl is Linux specific, other platforms allow core
dumps to occur in the cwd, so it's useful to allow the "cd /tmp"
for those platforms if the existing --dump option is specified.

6 years agolinuxdvb satconf: fix typo
Jaroslav Kysela [Fri, 28 Sep 2018 18:37:11 +0000 (20:37 +0200)] 
linuxdvb satconf: fix typo

6 years agomakefile disclean: remove debian/.dephelper directory, fixes #5223
Jaroslav Kysela [Fri, 28 Sep 2018 08:43:14 +0000 (10:43 +0200)] 
makefile disclean: remove debian/.dephelper directory, fixes #5223

6 years agodoozer: add python-requests package as requirement
Jaroslav Kysela [Thu, 27 Sep 2018 16:39:50 +0000 (18:39 +0200)] 
doozer: add python-requests package as requirement

6 years agotry to move build caching to pcloud
Jaroslav Kysela [Thu, 27 Sep 2018 16:35:51 +0000 (18:35 +0200)] 
try to move build caching to pcloud

6 years agoOptimize default configuration of SAT>IP Triax TSS 400
Pablo [Tue, 2 Oct 2018 18:41:36 +0000 (20:41 +0200)] 
Optimize default configuration of SAT>IP Triax TSS 400

https://tvheadend.org/issues/4244

As we discussed a while ago, the configuration should be different.

* The complete mux should not be supported
* Along with it an increase of maximum pids is useful to open more channels.

6 years agoconfigure: libav - check for libswresample or libavresample, fixes #5235
Jaroslav Kysela [Tue, 2 Oct 2018 13:54:19 +0000 (15:54 +0200)] 
configure: libav - check for libswresample or libavresample, fixes #5235

6 years agohtspmon: python3 fixes
Jaroslav Kysela [Mon, 1 Oct 2018 15:54:24 +0000 (17:54 +0200)] 
htspmon: python3 fixes

6 years agopython: Handle incorrect utf-8 decodes.
E.Smith [Tue, 25 Sep 2018 11:50:57 +0000 (12:50 +0100)] 
python: Handle incorrect utf-8 decodes.

Some broadcasts can have different charsets (such as iso-8859-1) but
we assume utf-8 unless user has set it correctly. So when decode fails
we get an exception.  So we now attempt to decode with error
replacement so user sees incorrect character.

This gives "u'Denise Th\ufffd\ufffd':" as the string returned instead
when the received name contains an é that is in iso-8859-1 instead of
utf-8.

6 years agopython: Make files python2/python3 compatible.
E.Smith [Tue, 25 Sep 2018 00:08:34 +0000 (01:08 +0100)] 
python: Make files python2/python3 compatible.

Ensure files are compatible with python2 and python3.
Main differences:
- print requires brackets
- string is bytes in python2 and unicode in python3
- need to use struct to pack/unpack binary data
- need to convert socket data to bytearray to allow data extraction

6 years agopython: Need to utf-8 decode our strings.
E.Smith [Sun, 23 Sep 2018 13:59:39 +0000 (14:59 +0100)] 
python: Need to utf-8 decode our strings.

6 years agohtsp.py: do not send authorization for each request
Jaroslav Kysela [Mon, 1 Oct 2018 12:29:46 +0000 (14:29 +0200)] 
htsp.py: do not send authorization for each request

6 years agosubscription: try to iterate through all adapters on tuning failed error, fixes ...
Jaroslav Kysela [Mon, 1 Oct 2018 09:14:59 +0000 (11:14 +0200)] 
subscription: try to iterate through all adapters on tuning failed error, fixes #5230

6 years agoservice: add error text to the service instance log
Jaroslav Kysela [Mon, 1 Oct 2018 08:17:33 +0000 (10:17 +0200)] 
service: add error text to the service instance log

6 years agosatip: pass specinv by default for DVB-C, fixes #5231
Jaroslav Kysela [Mon, 1 Oct 2018 08:11:55 +0000 (10:11 +0200)] 
satip: pass specinv by default for DVB-C, fixes #5231

6 years agobintray.py: handle 409 error as warning for upload (fix jessie builds)
Jaroslav Kysela [Thu, 20 Sep 2018 15:20:20 +0000 (17:20 +0200)] 
bintray.py: handle 409 error as warning for upload (fix jessie builds)

6 years agodoozer: try to fix centos build
Jaroslav Kysela [Wed, 20 Jun 2018 07:41:20 +0000 (09:41 +0200)] 
doozer: try to fix centos build

6 years agobintray.py: fix the argument check
Jaroslav Kysela [Mon, 9 Oct 2017 14:10:01 +0000 (16:10 +0200)] 
bintray.py: fix the argument check

6 years agomain: set default user/group only when specified for non-root users, fixes #5213
Jaroslav Kysela [Thu, 20 Sep 2018 12:46:42 +0000 (14:46 +0200)] 
main: set default user/group only when specified for non-root users, fixes #5213

6 years agoFreeBSD: Check for fdatasync system call since it is supported on FreeBSD 11.1 and...
E.Smith [Mon, 17 Sep 2018 12:10:27 +0000 (13:10 +0100)] 
FreeBSD: Check for fdatasync system call since it is supported on FreeBSD 11.1 and later.

6 years agoFreeBSD: Requires libinotify for inotify support.
E.Smith [Wed, 19 Sep 2018 16:16:22 +0000 (17:16 +0100)] 
FreeBSD: Requires libinotify for inotify support.

6 years agoFreeBSD: Support different stat format in Makefile.webui.
E.Smith [Wed, 19 Sep 2018 15:57:24 +0000 (16:57 +0100)] 
FreeBSD: Support different stat format in Makefile.webui.

The stat program on FreeBSD requires different arguments to GNU
stat. In the past, this is done by the ports patching the Makefile
post-extract.

Instead, we'll configure the program's arguments based on platform.
We'll also use %z (filesize) instead of the port's %b (file blocks) so
we generate equivalent output to the Linux version..

6 years agoFix a few "old-style-declaration" warnings in gcc.
E.Smith [Mon, 17 Sep 2018 16:17:24 +0000 (17:17 +0100)] 
Fix a few "old-style-declaration" warnings in gcc.

Mainly needing to put "static" first and "__thread" earlier.

6 years agotvhcsa: optimize offset check for incomplete packet in CSA descramble
Jaroslav Kysela [Thu, 13 Sep 2018 13:10:11 +0000 (15:10 +0200)] 
tvhcsa: optimize offset check for incomplete packet in CSA descramble

6 years agotvhcsa: add invalid offset check for CSA descramble
Jaroslav Kysela [Thu, 13 Sep 2018 06:41:17 +0000 (08:41 +0200)] 
tvhcsa: add invalid offset check for CSA descramble

6 years agomkv: set keyframe flag for all audio tracks, fixes #5151
Jaroslav Kysela [Wed, 12 Sep 2018 10:45:29 +0000 (12:45 +0200)] 
mkv: set keyframe flag for all audio tracks, fixes #5151

6 years agolinuxdvb: add 'Higher LNB voltage' option to the satconf, fixes #5199
Jaroslav Kysela [Wed, 12 Sep 2018 06:59:29 +0000 (08:59 +0200)] 
linuxdvb: add 'Higher LNB voltage' option to the satconf, fixes #5199

6 years agoBugFix: SATIP_SETUP_SPECINV0 and SATIP_SETUP_SPECINV1 has the same definition
mw@hesotech.de [Fri, 7 Sep 2018 07:17:36 +0000 (09:17 +0200)] 
BugFix: SATIP_SETUP_SPECINV0 and SATIP_SETUP_SPECINV1 has the same definition

6 years agosatip client: fix type for specinv, fixes #5190
Jaroslav Kysela [Tue, 4 Sep 2018 11:06:59 +0000 (13:06 +0200)] 
satip client: fix type for specinv, fixes #5190

6 years agosatip client: make specinv parameter tri-state (allows specinv=1)
Jaroslav Kysela [Mon, 3 Sep 2018 14:02:33 +0000 (16:02 +0200)] 
satip client: make specinv parameter tri-state (allows specinv=1)

6 years agosf_pass_weight can't be used with netstream 4c
MartiMcFly [Fri, 3 Aug 2018 02:12:08 +0000 (04:12 +0200)] 
sf_pass_weight can't be used with netstream 4c

6 years agoimplement netsream 4c
Martina Pietruschka [Mon, 30 Jul 2018 13:02:50 +0000 (15:02 +0200)] 
implement netsream 4c

Conflicts:
src/input/mpegts/satip/satip_private.h

6 years agoFreeBSD: Fix recv problem if no data received.
E.Smith [Fri, 17 Aug 2018 22:05:40 +0000 (23:05 +0100)] 
FreeBSD: Fix recv problem if no data received.

If using satip then we would frequently fail to read the data and
then disconnect with errno 0.

So, we now make the FreeBSD socket read consistent with the Linux
version and return EIO on non-error.

6 years agodvr inotify: fixes for the previous IN_MOVED_TO change
Jaroslav Kysela [Mon, 3 Sep 2018 13:32:39 +0000 (15:32 +0200)] 
dvr inotify: fixes for the previous IN_MOVED_TO change

6 years agodvr inotify: fix case where IN_MOVED_TO comes in subsequent read after read contaning...
joeuser [Sun, 2 Sep 2018 20:26:00 +0000 (22:26 +0200)] 
dvr inotify: fix case where IN_MOVED_TO comes in subsequent read after read contaning IN_MOVED_FROM

6 years agodvr_inotify: gcc8 fix
Jaroslav Kysela [Fri, 20 Apr 2018 10:26:21 +0000 (12:26 +0200)] 
dvr_inotify: gcc8 fix

6 years agodvr inotify: fix my last change, fixes #4702
Jaroslav Kysela [Wed, 8 Nov 2017 16:59:28 +0000 (17:59 +0100)] 
dvr inotify: fix my last change, fixes #4702

6 years agodvr inotify: reuse variables, fixes #4702
Jaroslav Kysela [Wed, 8 Nov 2017 16:54:16 +0000 (17:54 +0100)] 
dvr inotify: reuse variables, fixes #4702

6 years agodvr: Move declarations to top of function. (#4702)
E.Smith [Fri, 3 Nov 2017 19:32:21 +0000 (19:32 +0000)] 
dvr: Move declarations to top of function. (#4702)

Issue: #4702.

6 years agodvr: Handle symlinks for inotify. (#4702)
E.Smith [Fri, 13 Oct 2017 00:02:52 +0000 (01:02 +0100)] 
dvr: Handle symlinks for inotify. (#4702)

The filenames stored in the dvr/log are not realpath but can
be based on symlinks.

So, we might record in to /media/Videos/user1/show1 but
user1 could be a symlink to /media/Videos-drive2 (rather than
a bind mount).

Since inotify returns realpaths, if means that when we attempt
to update the dvr/log the filenames do not match.

So we now monitor the realpath for the directories and convert
filenames to realpath when doing the compare.

We do not store realpath in the dvr/log since users do not
want symlinks replaced with real paths.

Issue: #4702.

6 years agodvr: Handle inotify moving file to different directory. (#4702)
E.Smith [Thu, 12 Oct 2017 13:35:54 +0000 (14:35 +0100)] 
dvr: Handle inotify moving file to different directory. (#4702)

Previously if we moved a file from one directory we are
monitoring to another directory we are monitoring then the
path would not be updated correctly since we did not lookup
the 'to_fd'.

Issue: #4702.

7 years agodebian: always use gzip compression for deb files (bintray issue) - fixes #5091
mpmc [Wed, 25 Jul 2018 21:59:56 +0000 (22:59 +0100)] 
debian: always use gzip compression for deb files (bintray issue) - fixes #5091

7 years agoconfigure: check for strlcat & strlcpy
Bernd Kuhls [Sat, 23 Jun 2018 18:47:26 +0000 (20:47 +0200)] 
configure: check for strlcat & strlcpy

Building tvheadend with uclibc and musl fails:

src/tvh_string.h:50:22: error: static declaration of 'strlcpy' follows non-static declaration
 static inline size_t strlcpy(char *dst, const char *src, size_t size)

src/tvh_string.h:61:22: error: static declaration of 'strlcat' follows non-static declaration
 static inline size_t strlcat(char *dst, const char *src, size_t count)

because they provide strlcat & strlcpy:
https://sourceware.org/glibc/wiki/strlcpy

This patch adds configure checks and makes the implementation in
tvh_string.h optional, the configure log looks like this:

glibc
  checking for cc strlcat ...                       fail
  checking for cc strlcpy ...                       fail

musl
  checking for cc strlcat ...                       ok
  checking for cc strlcpy ...                       ok

uclibc
  checking for cc strlcat ...                       ok
  checking for cc strlcpy ...                       ok

7 years agompegts input: do not join non-existent threads
Jaroslav Kysela [Wed, 20 Jun 2018 13:08:03 +0000 (15:08 +0200)] 
mpegts input: do not join non-existent threads

7 years agoadd missing tvh_string.h header file
Jaroslav Kysela [Wed, 20 Jun 2018 13:11:23 +0000 (15:11 +0200)] 
add missing tvh_string.h header file

7 years agointroduce strlcpy() and strlcat() functions and use them
Jaroslav Kysela [Wed, 20 Jun 2018 12:23:43 +0000 (14:23 +0200)] 
introduce strlcpy() and strlcat() functions and use them

7 years agoFix cloning an entry in UIs where you select a type and save the clone manually
irgendsontyp [Sat, 16 Jun 2018 15:57:37 +0000 (17:57 +0200)] 
Fix cloning an entry in UIs where you select a type and save the clone manually

7 years agoMakefile: Add CFLAGS for timestamp and bundle objects, fixes #4870
Jaroslav Kysela [Fri, 19 Jan 2018 09:20:17 +0000 (10:20 +0100)] 
Makefile: Add CFLAGS for timestamp and bundle objects, fixes #4870

7 years agohtsmsg xml parser: fix NULL oops, fixes #5135
Jaroslav Kysela [Fri, 22 Jun 2018 08:26:22 +0000 (10:26 +0200)] 
htsmsg xml parser: fix NULL oops, fixes #5135

7 years agodoozer: workaround for makedev issues on bionic and add bionic i386
mpmc [Thu, 24 May 2018 17:54:06 +0000 (18:54 +0100)] 
doozer: workaround for makedev issues on bionic and add bionic i386