Commit graph

4496 commits

Author SHA1 Message Date
Jaroslav Kysela
c6446b1eef PID lookup, streaming pad filter and sbuf alloc optimizations
There is high probability (because of the "nature" of TS streams) that
next PID will match previous one. This patch tries to do simple "caching"
of last PID to speedup PID lookups.

The streaming pad filter is handled faster way now.

Also, sbuf allocations routines are optimized (better sb_size prediction and
allocation routine is called only on demand - not all time).
2014-03-07 20:35:19 +00:00
BtbN
fbad5312c5 Add channel number management functions 2014-03-07 21:19:59 +01:00
BtbN
67a8cbfac8 Fix crash on startup 2014-03-07 21:19:37 +01:00
amet
99c34ba238 add option to only allow user to access the tag that matches username 2014-03-07 11:11:27 +04:00
Bernhard Schuster
d298dec2e9 Neither stream nor file should require 0777 use 0644 instead, closes #1962. 2014-03-06 23:46:16 +01:00
Adam Sutton
342d0e7799 Merge remote-tracking branch 'origin/pr/331' 2014-03-05 16:22:18 +00:00
Adam Sutton
ae2ba4b6cd Merge remote-tracking branch 'origin/pr/329'
Conflicts:
	src/tvheadend.h
2014-03-05 16:22:03 +00:00
Adam Sutton
9e25af9173 service: fix possible var init bug 2014-03-05 16:21:10 +00:00
Jaroslav Kysela
ee06c4bdb4 Fix the failure message in the global config when imagecache is not available. 2014-03-05 17:05:41 +01:00
Jaroslav Kysela
9e092a91bc Fixes for graceful exit patch
Mostly avahi related and cosmetic fixes for the graceful exit patch.
2014-03-05 15:03:50 +01:00
Adam Sutton
cfb837cb48 build: attempt to overrcome deb building limitations 2014-03-05 12:44:40 +00:00
Adam Sutton
114ec45a6b support: minor corretion to mux list fetch script 2014-03-05 11:37:18 +00:00
Adam Sutton
cad4345bf7 support: remove raring and replace with trusty 2014-03-05 10:21:18 +00:00
Adam Sutton
a8816ebf58 Merge remote-tracking branch 'origin/pr/326' 2014-03-05 09:24:21 +00:00
Adam Sutton
983c2635b9 Merge remote-tracking branch 'origin/pr/327' 2014-03-05 09:22:48 +00:00
Adam Sutton
5759b21af0 Merge remote-tracking branch 'origin/pr/328' 2014-03-05 09:21:55 +00:00
Adam Sutton
1d1fc2bbaa Merge remote-tracking branch 'origin/pr/330'
Fixes #1983
2014-03-05 08:50:01 +00:00
Adam Sutton
6f610aef1a timeshift debug: correct format string 2014-03-04 15:43:58 +00:00
Natanael Copa
851fcf9ce3 build: typecast NGREG to int
Fixes the following error with musl libc:

src/trap.c: In function 'traphandler':
src/trap.c:178:3: error: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Werror=format=]
   snprintf(tmpbuf, sizeof(tmpbuf), "Register dump [%d]: ", NGREG);
      ^
2014-03-04 15:22:45 +00:00
Natanael Copa
edf9edf5a1 build: detect wordsize in a portable way
There are no standard that says that __WORDSIZE should be defined or
in what include file. So in case its not defined we fallback to a
POSIX compliant way to determine wordsize.

This fixes build with 64 bit musl libc.

See https://tvheadend.org/issues/1983
2014-03-04 12:40:29 +00:00
Natanael Copa
db29bca26b build: check for gcc version independent of platform
Use the gcc specific __GNUC__ and __GNUC__ minor to determine gcc version
rather than using the GNU libc specific __GNUC_PREREQ.

This fixes the following compile error with musl libc:
src/descrambler/capmt.c:79:18: error: missing binary operator before token "("
 #if __GNUC_PREREQ(4, 3)
                  ^
2014-03-04 12:01:59 +00:00
Natanael Copa
215789651c build: check for qsort_r independent of platform
Rather than check for specific glibc version on PLATFORM_LINUX, check
the existance of qsort_r.

This fixes the following compile error with musl libc:

CC              src/main.o
In file included from src/main.c:39:0:
src/tvheadend.h:608:20: error: missing binary operator before token "("
 #if !__GLIBC_PREREQ(2,8)
                    ^
2014-03-04 12:01:26 +00:00
Adam Sutton
f8855dfa49 debug: added extra debug for deep analysis of packet handling 2014-03-04 09:03:30 +00:00
Adam Sutton
298a9fb299 linuxdvb: add output of signal status message 2014-02-24 22:20:01 +00:00
Adam Sutton
1445848cc6 htsp channels: ensure HTSP gets channel update messages 2014-02-24 22:08:51 +00:00
John Törnblom
b5112daee8 webui: added bandwidth monitor for stream input 2014-02-24 12:02:08 +01:00
John Törnblom
5d9cc98502 webif: updated imdb query url 2014-02-22 20:15:47 +01: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
Jaroslav Kysela
ea526f2340 Fix the adapter_mask handling for linuxdvb 2014-02-17 12:03:46 +01:00
Jaroslav Kysela
43251f7fc6 Power off LNB when idle
Try to reduce power, when no streams are captured from DVB-S/S2 devices.
2014-02-17 11:55:39 +01:00
Stefan Saraev
9650e60a5c support/configure.inc: fix crosscompiling
--cc= can be whatever. there should be no check if generated
binaries can run while crosscompiling.
2014-02-14 18:29:28 +02:00
Adam Sutton
56a39c5c19 Merge pull request #324 from BtbN/channelnumber_http
Add a channelno url to play a channel by its user assigned number
2014-02-12 16:16:31 +00:00
BtbN
6f6944c8e7 Add a channelno url to play a channel by its user assigned number 2014-02-12 17:14:47 +01:00
Adam Sutton
a3c1599120 Merge pull request #325 from bconway/master
Issue #1968: Doc fix - Clarify grabber mechanics for newly-mapped channels.
2014-02-12 09:38:40 +00:00
Brian Conway
045cce86e8 Issue #1968: Clarify grabber mechanics for newly-mapped channels. 2014-02-11 19:22:22 -06:00
John Törnblom
f28ca36077 cosmetics 2014-01-28 14:41:33 +01:00
John Törnblom
e068315a6b epg: persist brand/season/episode images 2014-01-28 14:40:53 +01:00
Adam Sutton
f8f8efbebe htsp: bump protocol version to reflect addition of new cutpoint API 2014-01-28 09:42:58 +00:00
Adam Sutton
20154413ab dvr: some fixes from kendrak24 for my changes to PR #284 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
John Törnblom
b10cfcf406 webif: added a html5 based bandwidth monitor. 2014-01-17 13:53:44 +01:00
John Törnblom
e6e4ae7bf2 transcoding: fixed compilation on ubuntu 14.04 2014-01-17 13:53:43 +01:00
Adam Sutton
36249f75ad Merge remote-tracking branch 'origin/pr/322' 2014-01-16 21:20:11 +00:00
Adam Sutton
16badbd4a9 channel: add imagecache field 2014-01-16 21:19:15 +00:00
Luis Fernandes
4c4b085cd0 Added smart app banner for ios, linking to tvhclient 2014-01-16 12:06:23 +00:00
oscar-b
c80ddfacc9 Add "onid-" as suggested by Adam 2014-01-16 10:55:05 +01:00
oscar-b
fc068dd782 Use ONID as CRID authority as last resort. 2014-01-16 10:55:04 +01:00
Adam Sutton
5c41db0462 Merge remote-tracking branch 'origin/pr/319'
Fixes #1897
2014-01-15 21:12:11 +00:00
Adam Sutton
ea163ab923 tsfile: fix broken build caused by BSD updates 2014-01-15 20:31:39 +00:00