summaryrefslogtreecommitdiff
path: root/src/input
AgeCommit message (Collapse)Author
2007-12-19Use asprintf rather than snprintf, make frontend_device a local variable, ↵Diego 'Flameeyes' Pettenò
and make sure to free the allocated variables on error.
2007-12-19Mark the name attribute of Param being a const char *.Diego 'Flameeyes' Pettenò
2007-12-19Mark content static and const.Diego 'Flameeyes' Pettenò
2007-12-19Make buffering and enabled static, also use them as array of char array ↵Diego 'Flameeyes' Pettenò
rather than array of pointers.
2007-12-19Typo.Darren Salt
2007-12-19Add and use new functions for malloc+memcpy(+NUL-term) fragments.Darren Salt
2007-12-19Use a zeroed allocation for buf rather than using memset.Diego 'Flameeyes' Pettenò
2007-12-19Use strcat, delay calculation of resp_len.Diego 'Flameeyes' Pettenò
2007-12-19Remove attribute that is never used.Diego 'Flameeyes' Pettenò
2007-12-19Make auth also a local variable in http_plugin_open.Diego 'Flameeyes' Pettenò
2007-12-19Make proxyauth a variable local to http_plugin_open() function.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %F2%15%E8%D0%BC%EE%04Xk%21U%D2%AB%968%0F%15%8A%91E
2007-12-18Merge from 1.1.Darren Salt
2007-12-18Don't treat # in MRLs as literals or URI-decode raw filenames. [Bug 1784272]Darren Salt
2007-12-18Clean up recursive mkdir().Darren Salt
2007-12-18Mark the enctable static.Diego 'Flameeyes' Pettenò
2007-12-18Avoid a multiplication.Diego 'Flameeyes' Pettenò
2007-12-18Use asprintf.Diego 'Flameeyes' Pettenò
2007-12-18Use asprintf.Diego 'Flameeyes' Pettenò
2007-12-18Use strdup.Diego 'Flameeyes' Pettenò
2007-12-18Use strndup.Diego 'Flameeyes' Pettenò
2007-12-18Use calloc() when allocating an array of elements.Diego 'Flameeyes' Pettenò
2007-12-18Use strndup.Diego 'Flameeyes' Pettenò
2007-12-18Use asprintf where possible.Diego 'Flameeyes' Pettenò
2007-12-18Use variable-sized arrays rather than allocated buffers.Diego 'Flameeyes' Pettenò
2007-12-18Use asprintf().Diego 'Flameeyes' Pettenò
2007-12-18Use zeroed allocation instead of memset, and don't zero out a string that is ↵Diego 'Flameeyes' Pettenò
going to be fully sprintf'd.
2007-12-18Use calloc() when the allocated size would be counted by multiplying the ↵Diego 'Flameeyes' Pettenò
size of an item for the number of items.
2007-12-13Mark dvb_mjdtime as static.Diego 'Flameeyes' Pettenò
2007-12-13Make sure that the sign of local variables and parameters of local functions ↵Diego 'Flameeyes' Pettenò
are the same.
2007-12-13Make sourcea bytes buffer.Diego 'Flameeyes' Pettenò
2007-12-13Make rmff_dump_pheader accept a bytes buffer.Diego 'Flameeyes' Pettenò
2007-12-13Make rmff_dump_header accept a void * parameter for buffer.Diego 'Flameeyes' Pettenò
2007-12-13Make rtsp_read_data accept a void* parameter for buffer.Diego 'Flameeyes' Pettenò
2007-12-11Bump the interface version of the VCD plugin (which got missed earlier).Darren Salt
2007-12-11Bump the input plugins interface version to 18 as they got updated.Diego 'Flameeyes' Pettenò
2007-12-11Merge from 1.2 main branch.Diego 'Flameeyes' Pettenò
2007-12-11Don't use the if(foo) free(foo); construct, as free(NULL); is well defined.Diego 'Flameeyes' Pettenò
2007-12-11Use default_*_class_dispose macro whenever the class dispose function only ↵Diego 'Flameeyes' Pettenò
called free().
2007-12-11Define free() as the default dispose function for plugin classes.Diego 'Flameeyes' Pettenò
Most plugin classes in xine define a dispose function simply to call free(), but free() is ABI-compatible with our dispose functions, so add a macro that allows to pass free() directly as dispose function. It's an opt-in so that no extra conditional is needed, and plugin authors won't forget about providing a dispose function (if they need to).
2007-12-11Use N_() rather than _(), passing the string just once to gettext().Diego 'Flameeyes' Pettenò
This way the gettext code for description does not need to be repeated by every plugin.
2007-12-11Add a textdomain field to allow using a different i18n catalog for the ↵Diego 'Flameeyes' Pettenò
description translation.
2007-12-11Update all input plugins to the new identifier/description interface.Diego 'Flameeyes' Pettenò
2007-12-11Replace get_identifier/get_description functions with strings.Diego 'Flameeyes' Pettenò
This is the start of a new experimental branch, with the first objective being the replacement of the get_description and get_identifier functions with direct-access strings. The reason for this change is to reduce code size and time of execution. By replacing the functions with direct-access strings there is one less call to be done in those cases where the description has to be fetched. The solution is not yet definitive though, there are a couple of problems to take care of: - the use of N_() still makes it easy to internationalise the strings, but it requires for the string to be found on libxine2 catalog, which is not exactly a nice solution for external plugins; - it would be simpler to re-use the id field in plugin_info_t, and then move description there; it should reduce memory usage for the class structures; - I'm not really aware of any reason why get_description and get_identifier were used beside the idea of making i18n simpler. This probably would break a couple of frontends, especially if they have some internal plugins (like post-plugins), so it needs to be reviewed carefully before merging in 1.2 branch. My current goal is to get this in before 1.2 though, rather than waiting for 1.3.
2007-11-25Merge from 1.1.Darren Salt
Some fixups were required for the kfreebsd patch; needs testing. --HG-- rename : src/video_out/libdha/ports.c => contrib/libdha/ports.c rename : src/demuxers/demux_ogg.c => src/combined/xine_ogg_demuxer.c rename : src/libxineadec/xine_vorbis_decoder.c => src/combined/xine_vorbis_decoder.c
2007-11-19add support for GNU/kFreeBSDPetr Salinger ext:(%20)
It changes some "defined (__FreeBSD__)" into "defined (__FreeBSD_kernel__)" and "__FreeBSD_version" into "__FreeBSD_kernel_version". The changes are performed on places, where feature of kernel is tested. On some other places, feature of userland/libc is tested, on them "defined (__FreeBSD__)" remains. As proposed, include/configure.h cause __FreeBSD_kernel__ be defined if __FreeBSD__ is defined. --HG-- extra : transplant_source : %25%96K%05%E4Y%B15%94%60%15%FE1%8Ah%26Xy%8C/
2007-11-19Remove internal copies of libcdio and libvcd. This way we don't have to care ↵Diego 'Flameeyes' Pettenò
about bugs in those two on newer versions of operating systems.
2007-11-14Move CRC32 code into a common file (& out of the DVB input & TS demux plugins).Darren Salt
2007-11-14Merge from 1.1.Darren Salt
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