summaryrefslogtreecommitdiff
path: root/src/xine-utils
AgeCommit message (Collapse)Author
2009-11-30Trim trailing space & reduce space+tab.Darren Salt
2009-10-15Make the XML lexer and parser re-entrantMatt Kraai
2009-10-13profiler: use uint64_t & replace arrays with a structCarlo Bramini
MSVC complained about a memset to a const object and all "long long" variables that are GNU only. I fixed it by grouping the fields into a structure and now even GCC is more happy.
2009-05-07Character encoding is stored in LC_CTYPESander Jansen
2009-02-18"No newline at end of file" fixes.Darren Salt
2009-02-17Allow cpuid code to compile on OpenBSD/i386.Brad Smith
2009-01-18Remove '#include "config.h"' from all public header files.Darren Salt
This requires that many other files include config.h themselves. Also convert <config.h> to "config.h".
2009-01-15Split most of the MMX declarations in xineutils.h out into xine_mmx.h.Darren Salt
This does not incompatibly change the API and has no effect on the ABI. --HG-- rename : src/xine-utils/xineutils.h => src/xine-utils/xine_mmx.h
2008-11-20Some warning fixes: XINE_FORMAT_SCANF, statics in headers, consts, ...František Dvořák
Add warning flags to the DEBUG_CFLAGS too.
2008-09-28Fix xine_usec_sleep for mingw+msysMatthias Ringwald
Bug was found and fixed by Carlo Bramini. select() does not work on mingw+msys causing xine_usec_sleep to sleep much longer than requested which completely broke audio playback
2008-07-11Fix xine_get_pluginroot (mingw32)Matthias Ringwald
xine_get_pluginroot now makes use of the XINE_REL_PLUGINROOT define
2008-07-08Fix compilation for pthread support provided by PTHREAD_{CFLAGS+LIBS}Matthias Ringwald
<xine-internals.h> includes <xine-utils/refcounter.h> which includes <pthread.h>. As all xine sources include <xine-internal.h>, the PTHREAD_CFLAGS are always needed. This patch removed it from two Makefile.am and adds them to CPPFLAGS
2008-07-04Use calloc to allocate the memory area for the YUV planes.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %00%23%8FM%AA%B88C%FEA%7E%2C%D3%F5%29%8F%28%AC%D7_
2008-07-02provide PTHREAD_CFLAGS when neededMatthias Ringwald
2008-06-15Move the declaration of xine_strcat_realloc.Darren Salt
2008-06-12Fix up reporting of supported formats by the ALSA & OSS output plugins.Darren Salt
Adjust translations for the spacing changes etc. which this introduces.
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-20Make xine_mm_accel() appear like a constant function.Diego 'Flameeyes' Pettenò
Its result will be always the same during execution, as it depends on the hardware present. --HG-- extra : transplant_source : %F2%D1%1A%84%0F%D4%08%C0%12%09%1A%BBb%7Ef%CC%F2%FB%A3t
2008-05-20Add check for const attribute (for mathematical functions).Diego 'Flameeyes' Pettenò
Add CC_ATTRIBUTE_CONST macro to the attributes.h. Run CC_ATTRIBUTE_CONST in configure. Define SUPPORT_ATTRIBUTE_CONST for GCC 3. Define XINE_CONST to __attribute__((__const__)) if supported. --HG-- extra : transplant_source : /26%26%DF%C0%3C%AC%27%5C%B7%B1y%FEQ%8Ay%EE%F1%BD
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-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-09Remove a new bunch of xine_malloc() calls.Diego 'Flameeyes' Pettenò
Also don't reset memory after it's allocated if we do that with calloc.
2008-05-09Cleanup handling of packed attribute.Diego 'Flameeyes' Pettenò
- Add a configure test for the attribute, during xine build process. - Define the attribute as supported when using GCC 2.95 or later outside xine build process. - Use the new XINE_PACKED define instead of the attribute directly. - Check for SUPPORT_ATTRIBUTE_PACKED rather than doing strange subdefines.
2008-05-07Deprecate xine_xmalloc().Diego 'Flameeyes' Pettenò
2008-05-07Merge file removal.Diego 'Flameeyes' Pettenò
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
2008-05-07Actually remove the xine_check.h file.Diego 'Flameeyes' Pettenò
2008-05-07Define support for attributes based on compiler's version outside xine build.Diego 'Flameeyes' Pettenò
When we're including xine/attributes.h but we're not building xine, define the support for particular attributes based on the compiler and its version. This way semantic information is maintained outside xine's build (such as deprecated functions).
2008-05-07Make _x_health_check_* functions static.Diego 'Flameeyes' Pettenò
The xine_check.h header is not currently installed and the symbols are not exported, their are only ever used in the same unit they are defined.
2008-05-05Check for malloc attribute and define XINE_MALLOC for use in xineutils.h, ↵Diego 'Flameeyes' Pettenò
rather than just checking for GCC 3.
2008-05-03Mark some removed-in-1.2 exported/unimplemented functions as deprecated.Darren Salt
2008-05-03Add support for "deprecated" attribute.Darren Salt
2008-04-28Add xine_get_pluginroot() for win32. Completely untested.Darren Salt
2007-12-18Use calloc() when allocating an array of elements.Diego 'Flameeyes' Pettenò
(transplanted from 332f543689ebef22ef38e052c437d6998ac8fe66) --HG-- extra : transplant_source : 3/T6%89%EB%EF%22%EF8%E0R%C47%D6%99%8A%C8%FEf
2008-03-17Allow CR & LF termination of XML element names.Darren Salt
2008-03-02Backport the MANGLE macro handling from 1.2-libavutil branch (and adapt).Diego 'Flameeyes' Pettenò
2008-02-09Remove some unnecessary tests (which the compiler would discard).Darren Salt
2007-12-31Convert XML parser ABI breakage into ABI extension. Bump the soname accordingly.Darren Salt
2007-12-30Dereference buffer size pointers when comparing buffer sizes.Darren Salt
2007-12-27xmlparser: fix token buffer being too smallMaximilian Schwerin
What this patch does is replace the token buffer of static size in xml_parser_get_node with a malloced buffer. If the lexer notices, that it needs more size it just increases the size of this buffer by factor two and tries again. This may not be very elegant, but it works. node_name and property_name are dynamically-sized too.
2007-12-17Fix an off-by-one error concerning UTF-8-encoded BOMs.Darren Salt
2007-12-14Convert XML to UTF-8 for parsing if a BOM is detected.Darren Salt
2007-11-23Merge.Darren Salt
2007-11-20Mark the PPC asm memcpy() implementations as hidden symbols.Diego 'Flameeyes' Pettenò
2007-11-15using select instead of nanosleep the wakeup count reported by powertop is ↵Matthias Kretz
reduced by 50%
2007-11-10Delete most of the CVS $Id$/$Log$ lines.Darren Salt
--HG-- extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
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-11-06Decode numbered XML char entities as UTF-8, and support codes >= 256.Darren Salt
Ref. http://bugzilla.gnome.org/show_bug.cgi?id=484768#c12
2007-10-23Simple patch to the XML parserBastien Nocera
Found this little problem (was causing some "uninitialised variable accesses" under valgrind) while implementing Podcast reading in RB using Totem's playlist parser. --HG-- extra : transplant_source : J%D9/%16%E2i%B2%84%FA%8A%85%888N%A5%B4%16s%BD%16
2007-06-08Protect attribute declarations against, e.g., random printf redefinitions.Darren Salt