summaryrefslogtreecommitdiff
path: root/src/input/input_dvb.c
AgeCommit message (Collapse)Author
2008-06-15Merge.Darren Salt
2008-06-15Remove nbc_check_buffers calls; mark it & the low-water mark fns as deprecated.Darren Salt
2008-05-23Mark initialisation functions with malloc attribute.Diego 'Flameeyes' Pettenò
All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call.
2008-05-09Use size_t to keep the value returned by strlen().Diego 'Flameeyes' Pettenò
When using a variable to store the result of strlen(), make sure its type is size_t just like the function returns, rather than using a smaller type like int. --HG-- extra : transplant_source : %B0%D5%3B%D7%1Dy%0A%7E%7D%7C%023%08%B2%CE%D3t%0B3%D7
2008-05-09Use size_t rather than int to store the return value of strlen().Diego 'Flameeyes' Pettenò
Also, reduce visibility of the i variable to the loop where it is used.
2008-05-09Avoid loop for common memory operations (zeroing, copying, moving).Diego 'Flameeyes' Pettenò
Use the proper function for common memory operations (memset() for zeroing, memcpy() for copying, memmove() for moving), instead of looping through arrays. By extension, remove loops to reset arrays when they were allocated with calloc() and thus already zeroed.
2008-05-07Replace strn?cpy() + strn?cat() calls with a?sprintf().Diego 'Flameeyes' Pettenò
Instead of creating strings through a series os string copy and concatenations, use directly the appropriate printf-like function.
2008-05-07Use proper string functions in place of sn?printf.Diego 'Flameeyes' Pettenò
Instead of calling sprintf or snprintf with a "%s" format string, use the proper strcpy, strncpy, strdup or strndup function.
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
2007-11-13Missing channels.conf (ATSC)Tom Shield
load_channels was being called without checking the tuner fontend type, so channels.conf could not be decoded. Tested for ATSC only.
2007-11-13Improve the "no channels.conf" message; tidy up local variable initialisation.Darren Salt
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2007-07-13Fix a spelling error in the media.dvb.tuning_timeout description.Darren Salt
2007-07-12Allow input_dvb to timeout on no signalSimon Farnsworth
If there's no signal, the tuner never goes to FE_TIMEDOUT. Add a separate timeout, to prevent xine waiting forever in these situations.
2007-06-13Avoid name collision (don't redefine NOPID).Albert Lee
2007-05-17Convert comments (and the occasional string where it doesn't matter) to UTF-8.Darren Salt
2007-05-02[PATCH] Enhance logging in demux_ts, input_dvb and video_out_xvSimon Farnsworth
The three attached patches (against 1.1.6) each increase the amount of debug logging in their respective components. We've found the extra logging useful when trying to track down faults. I've split this into three patches to make it easier to apply only some of our changes. -- Comments welcome, Simon Farnsworth
2007-05-13Correct the dvba:// MRL / tuner mismatch message.Darren Salt
2007-04-14Oops. Silly mistake with fstat.Darren Salt
2007-04-14Don't read channels.conf if it isn't a normal file or a link to a normal file.Darren Salt
2007-04-14Reworked the channels.conf file handling in the DVB plugin.Darren Salt
Previously, with junk content, the plugin could potentially consume lots of memory (possibly causing a local DoS). Also, a few small memory leaks have been eliminated.
2007-04-04When EOVERFLOW is not defined, use EINVAL instead.Pascal S. de Kloe
2007-01-19Make get_mrl return a const char * too.Diego 'Flameeyes' Pettenò
CVS patchset: 8524 CVS date: 2007/01/19 01:05:24
2007-01-18Make get_description function return a const char * rather than just a char ↵Diego 'Flameeyes' Pettenò
*, so that 'return "something"' is valid. Note that _()/gettext() returns a char * but statically allocated, that the documentation considers constant. CVS patchset: 8519 CVS date: 2007/01/18 23:02:18
2006-12-08Prevent segfaults on out-of-range last_channel.Darren Salt
CVS patchset: 8408 CVS date: 2006/12/08 22:26:22
2006-07-13Added missing NULL sentinel.Matthias Hopf
CVS patchset: 8127 CVS date: 2006/07/13 09:50:14
2006-07-10Implement visibility support, available on GCC 4.0 and later and on some 3.4 ↵Diego 'Flameeyes' Pettenò
(through backports), to avoid exporting unneeded internal symbols, making plugins' loading faster and use of internal copies of libraries more solid. It should automatically fall back to the old way in GCCs that does not support -fvisibility=hidden, but has to be tested carefully. No issues were found in the months of testing in Gentoo, but this requires special attention anyway. CVS patchset: 8101 CVS date: 2006/07/10 22:08:12
2006-06-18Misc warnings fixes.Diego 'Flameeyes' Pettenò
CVS patchset: 8055 CVS date: 2006/06/18 20:29:03
2006-05-03Make various arrays and structures (mainly xine_plugin_info) const.Darren Salt
(Diego Pettenò) CVS patchset: 7985 CVS date: 2006/05/03 19:46:06
2006-04-06remove some c++ comments missed in the last commitMike Lampard
CVS patchset: 7963 CVS date: 2006/04/06 09:28:51
2006-04-06Add ATSC support, thanks to Jack Steven Kelliher, with some minor changesMike Lampard
noted by Barry Scott. CVS patchset: 7960 CVS date: 2006/04/06 08:00:50
2006-03-16[coverity]Thibaut Mattern
CID: 278 Checker: USE_AFTER_FREE (help) File: xine-lib/src/input/input_dvb.c Function: dvb_plugin_dispose Description: Using freed pointer "(this)->channels" CID: 269 Checker: UNINIT (help) File: xine-lib/src/input/input_dvb.c Function: dvb_plugin_open Description: Using uninitialized value "num_channels" CID: 43 Checker: FORWARD_NULL (help) File: xine-lib/src/input/input_dvb.c Function: dvb_plugin_dispose Description: Variable "(this)->channels" tracked as NULL was dereferenced. CID: 219 Checker: RESOURCE_LEAK (help) File: xine-lib/src/input/input_dvb.c Function: dvb_parse_si Description: Returned without freeing storage "bufptr" CID: 218 Checker: RESOURCE_LEAK (help) File: xine-lib/src/input/input_dvb.c Function: load_epg_data Description: Returned without freeing storage "seen_channels" CID: 217 Checker: RESOURCE_LEAK (help) File: xine-lib/src/input/input_dvb.c Function: load_epg_data Description: Returned without freeing storage "foo" CID: 216 Checker: RESOURCE_LEAK (help) File: xine-lib/src/input/input_dvb.c Function: load_channels Description: Returned without freeing storage "f" CID: 215 Checker: RESOURCE_LEAK (help) File: xine-lib/src/input/input_dvb.c Function: dvb_class_get_autoplay_list Description: Variable "tmpbuffer" not freed or pointed-to in function "fopen" CID: 214 Checker: RESOURCE_LEAK (help) File: xine-lib/src/input/input_dvb.c Function: dvb_class_get_autoplay_list Description: Returned without freeing storage "foobuffer" CID: 252 Checker: REVERSE_INULL (help) File: xine-lib/src/input/input_dvb.c Function: dvb_zoom_cb Description: Pointer "this" dereferenced before NULL check CVS patchset: 7931 CVS date: 2006/03/16 22:10:33
2006-02-14Kill a printf() warning.Darren Salt
CVS patchset: 7892 CVS date: 2006/02/14 18:41:43
2005-11-28*BUGFIX*František Dvořák
Improved cross-compiling: detect and precedence of the host-specific libs W32dll: enabled by platforms as originaly, user can override it Fixed shell errors in the Makefile of the hackersguide Detect the place of SDL header independently on platform Fixed spelling in CDDA, include the header sys/param.h if available Fixed format strings (fix warnings (or even bugs) on Gentoo/FreeBSD) CVS patchset: 7815 CVS date: 2005/11/28 12:24:56
2005-10-14input plugin time seeking patch.Miguel Freitas
hopefuly somebody will be able to help fixing the mess i did in dvdnav ;) CVS patchset: 7759 CVS date: 2005/10/14 21:02:16
2005-08-25*BUGFIX*František Dvořák
Windows ports fixes and improvements due to my current work on toxine: - first experiments with external win32 pthreads, more portable code (pthread_t may be a struct) - headers refactored - moved dirent win32 replacement to lib/, hide it for frontends, used system version, if found, not used non-POSIX dirent->d_reclen (this item doesn't work in MinGW), fix memleak in dvb - separated settings for postproc and avcodec when using external ffmpeg - check for malloc.h in public xine.m4, used it conditionally in xine headers - replaced random() by POSIX more common rand() - prevent one segfault in directx vo plugin, if fails - M$VC port update CVS patchset: 7709 CVS date: 2005/08/25 15:36:29
2005-02-14**BUGFIX** don't use background thread for epg data, as it still affectsMike Lampard
the TS stream. Change tuning slightly to workaround changes in the 2.6.10+ kernel driver. CVS patchset: 7416 CVS date: 2005/02/14 08:30:27
2005-02-07Added PLUGIN_MUST_PRELOAD to all input plugins registering config entries.Thibaut Mattern
Added PLUGIN_NO_UNLOAD to the gnome_vfs plugin because unloading this plugins cause troubles (segfault). Current plugin loader preloads all input and demuxer plugins, so adding these flags will not change the current behavior of the lib. CVS patchset: 7390 CVS date: 2005/02/07 23:58:57
2005-02-06Added a plugin_node_t pointer to the input plugin struct.Thibaut Mattern
Incremented all input plugins API version. CVS patchset: 7384 CVS date: 2005/02/06 15:00:34
2005-01-05workaround for some versions of dvbscan which incorrectly output theMike Lampard
frequency in MHz rather than kHz. CVS patchset: 7325 CVS date: 2005/01/05 12:54:04
2004-12-20fix compile warningsMike Lampard
CVS patchset: 7284 CVS date: 2004/12/20 15:59:05
2004-12-19multiple epg fixes: fix for incorrectly parsed running status, clear old epgMike Lampard
data, fix cropped epg texts, fix epg holding up demuxer thread. CVS patchset: 7279 CVS date: 2004/12/19 19:10:39
2004-12-15warning fixesMichael Roitzsch
CVS patchset: 7260 CVS date: 2004/12/15 20:57:28
2004-12-14fix for potential memleakMike Lampard
CVS patchset: 7251 CVS date: 2004/12/14 06:41:05
2004-12-13change to new config naming schemeMike Lampard
CVS patchset: 7239 CVS date: 2004/12/13 10:55:24
2004-12-13numerous bugfixes, code cleanup, new epg code, based on patch by PekkaMike Lampard
Jääskeläinen. CVS patchset: 7237 CVS date: 2004/12/13 10:34:49
2004-12-12huge patch ahead: reorganizing config entries with automatic conversionMichael Roitzsch
and backwards compatible translation Sorry, I got a litte tired proof-reading the patch, so their might be bugs lurking around. I will give it some further examination and (as necessary) fixing tomorrow. CVS patchset: 7233 CVS date: 2004/12/12 22:00:47
2004-12-07variable declarations above statements please...Mike Lampard
CVS patchset: 7202 CVS date: 2004/12/07 14:54:28
2004-12-07remove legacy dvbdisplaychan config option. disable left click->EPG, as itMike Lampard
is a little to obtrusive, the EPG is still not stable for some people. CVS patchset: 7199 CVS date: 2004/12/07 11:13:35
2004-12-06patch from Pekka Jääskeläinen for additional mouse control and epgMike Lampard
enhancements. CVS patchset: 7194 CVS date: 2004/12/06 06:13:51