Age | Commit message (Collapse) | Author |
|
--HG--
branch : point-release
|
|
|
|
|
|
|
|
|
|
--HG--
extra : transplant_source : %99%9B%D5%B3Ro%87%BFV%E9%2BY%AA%83QE/%CD%5D%ED
|
|
Now that the macro are either imported from the system or defined by
configure. don't define them in every source file.
|
|
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.
|
|
Using asprintf() instead of malloc() + sprintf() reduces the lines of
code in xine-lib (moving the allocation to the C library or asprintf
replacement), makes it safer to access the string and can also improve
performance whenever the value returned by a function was used as
parameter, as before it had to run the function twice in almost every
case (once for strlen(), once for sprintf()).
|
|
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
|
|
For contributed code, leave whatever the version we last synced for is using
to make simpler future syncs.
|
|
show() in osd.c uses realloc in an effort to minimise the amount of
memory actually used for rle objects. In practice, this caused xine to
fragment memory, and gradually use more and more RAM (measured over a
period of 24 to 72 hours).
Change osd.c to allocate the maximum amount of memory it could need;
because it touches this memory in a linear fashion, lazy page allocation
will ensure that most of the memory used is needed. Further, because
this makes the per-drawing allocations the same size, it avoids virtual
address space fragmentation.
|
|
|
|
instead of headers (and thus are not part of public ABI).
|
|
without Freetype support.
CVS patchset: 8642
CVS date: 2007/03/03 22:59:37
|
|
possible memory leak.
CVS patchset: 8641
CVS date: 2007/03/03 14:12:50
|
|
CVS patchset: 8608
CVS date: 2007/02/20 00:34:55
|
|
RLE encoded antialiased fonts don't look good).
CVS patchset: 8415
CVS date: 2006/12/14 10:14:48
|
|
CVS patchset: 8323
CVS date: 2006/09/29 20:16:44
|
|
identify which font to load for OSD and subtitles. This allows to use truetype fonts by specifying their friendly name and just that. Also prefer FreeType2 loaded fonts to bitmap fonts.
CVS patchset: 8321
CVS date: 2006/09/29 18:36:52
|
|
default.
CVS patchset: 8223
CVS date: 2006/09/12 21:24:18
|
|
CVS patchset: 7967
CVS date: 2006/04/10 17:42:14
|
|
Also negative coordinates are legal now.
CVS patchset: 7958
CVS date: 2006/04/05 12:44:32
|
|
buffer overflows.
CVS patchset: 7954
CVS date: 2006/03/27 10:43:11
|
|
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
|
|
CVS patchset: 7745
CVS date: 2005/09/25 00:44:04
|
|
"clip" thing has caused too much confusion already since these variables
define a highlight area.
- add overlay offset support to video_out.c/alphablend/vo drivers
- use overlay offset to implement proper croping of frames when vo
driver doesn't support it
- add clipping checks to alphablend to avoid buffer overflow, buffer
"underflow" and wrapping.
- increase vo api number
- note: dxr3 support is incomplete about overlay offset
CVS patchset: 7739
CVS date: 2005/09/24 19:08:26
|
|
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
|
|
CVS patchset: 7691
CVS date: 2005/07/27 23:46:34
|
|
CVS patchset: 7461
CVS date: 2005/04/18 14:06:29
|
|
function), courtesy of Diego Biurrun
CVS patchset: 7383
CVS date: 2005/02/05 20:31:04
|
|
Andreas Roever
CVS patchset: 7369
CVS date: 2005/01/27 22:32:24
|
|
xine_osd_draw_text now has the same semantics for xine- and freetype-fonts regarding the coordinates. xine_osd_get_text_size now returns the font height for freetype fonts.
CVS patchset: 7366
CVS date: 2005/01/22 23:29:06
|
|
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
|
|
CVS patchset: 7083
CVS date: 2004/10/27 23:03:22
|
|
Compilation fix for CygWin.
CVS patchset: 6932
CVS date: 2004/09/02 19:56:40
|
|
by Reinhard Nissl.
CVS patchset: 6875
CVS date: 2004/08/06 21:35:54
|
|
CVS patchset: 6839
CVS date: 2004/07/22 14:29:28
|
|
please everybody watch out for spelling (and other) errors
CVS patchset: 6442
CVS date: 2004/04/26 17:50:06
|
|
CVS patchset: 6313
CVS date: 2004/03/28 19:56:08
|
|
CVS patchset: 6309
CVS date: 2004/03/27 12:59:45
|
|
CVS patchset: 6297
CVS date: 2004/03/21 23:45:10
|
|
CVS patchset: 6294
CVS date: 2004/03/21 23:13:36
|
|
CVS patchset: 6293
CVS date: 2004/03/21 23:04:13
|
|
CVS patchset: 6193
CVS date: 2004/02/29 17:33:04
|
|
- xine compilable without iconv (scream if I something broke)
- update MSVC port, fixes in avi demux
- add iff.h into makefiles
- ffmpeg depends on zlib (build was OK only when freetype was installed)
- commit a patch for goom
CVS patchset: 6192
CVS date: 2004/02/29 17:26:45
|
|
(as discussed on xine-devel, slightly improved to block acquires from
different threads between atomic revoke and issue)
* xine_ticket_t is declared in xine_internal.h and implemented in xine.c
* the ticket is acquired for (hopefully) all port operations
(no modifications to decoders needed, decoder loop does this)
* the ticket is revoked on pausing and on rewiring
* OSD does not store the port pointer any more (which was very dangerous,
since the pointer can change on rewire)
CVS patchset: 6137
CVS date: 2004/02/12 18:19:00
|
|
Force using UCS-2LE or UCS-2BE according to endianness.
CVS patchset: 6065
CVS date: 2004/01/26 09:49:33
|
|
CVS patchset: 5879
CVS date: 2003/12/09 00:02:28
|
|
Replace XINE_ASSERT by _x_assert, which works exaclty as assert, except that it still warns with NDEBUG defined (but don't abort). Fix missuning of assert(0), which isn't safe, abort is abort, assert is for debugging purpose only, so all assert(0) has been converted to abort() alls. In osd_preload_fonts(): alloc needed memory chunk. Define NDEBUG in CFLAGS, for non DEBUG build only.
CVS patchset: 5860
CVS date: 2003/12/07 15:34:29
|