Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
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
|
|
(Cset 1a0447486a13 broke things differently.)
|
|
|
|
handle that case
|
|
In ao_loop only read the first buffer and remove it from the fifo only when the
buffer has been written or is about to be discarded. This fixes the race between
ao_loop and ao_close for good. Now fifo_remove_int may signal empty again right
after removing the last buffer from the fifo.
|
|
but only when a read was requested and the fifo is empty.
Rationale: ao_close uses fifo_wait_empty to make sure all buffers were written
to the driver before it calls close on the driver. But if empty is already
signaled when ao_loop just reads the next buffer then ao_close might close the
driver before ao_loop has a chance to send the buffer to the driver.
|
|
buf must be != NULL because of the while(!fifo->first) before and the buf->next after
|
|
|
|
discard all buffers before calling fifo_wait_empty
|
|
--HG--
extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
|
|
For contributed code, leave whatever the version we last synced for is using
to make simpler future syncs.
|
|
According to bug 1773769, this breaks foo->open().
The fix (as used in Ville Skyttä's patch, which doesn't cover all cases) is
to replace this with (foo->open)().
This patch was generated using
sed -i -re 's/(([[:alnum:]_]+(->|\.))+open) ?\(/(\1) (/' `grep '[>.]open \?(' include -rIl`
One change (in a comment) is not committed.
|
|
The cause was that the resampling code was using only the samples in the buffer
but not really handling the transition between two buffers (which it would
handle completely independently). The new code remembers the last sample from
the previous buffer and uses it in the resampling. We therefore end up one
sample behind and without the clicks.
|
|
|
|
close the driver on a return value <0
|
|
Two of the modified files are headers, but each contains definitions as well as
declarations and is only ever used once.
|
|
instead of headers (and thus are not part of public ABI).
|
|
private structure so it's not part of the ABI.
CVS patchset: 8780
CVS date: 2007/04/01 00:52:36
|
|
CVS patchset: 8747
CVS date: 2007/03/25 23:09:42
|
|
Reinhard Nissl. [bug #1551911]
CVS patchset: 8437
CVS date: 2006/12/25 15:07:51
|
|
Symptoms could be buffer overruns (monaural streams) or incomplete processing.
Original version of the patch is from Steve Freeland <caucasatron@yahoo.ca>.
CVS patchset: 8358
CVS date: 2006/11/04 23:30:14
|
|
CVS patchset: 8344
CVS date: 2006/10/16 22:18:24
|
|
that is filled just one time.
Solves CID 290 from Coverity Scan.
CVS patchset: 8284
CVS date: 2006/09/26 01:13:18
|
|
CVS patchset: 8210
CVS date: 2006/09/09 17:13:16
|
|
- don't keep trying driver->open after stop (emergency_brake) is requested
- also check for failure on audio format change (implies close/open)
CVS patchset: 8207
CVS date: 2006/09/08 20:32:47
|
|
undefined when using nbc (stdin, http, ...), so the latest debug build asserted.
CVS patchset: 7982
CVS date: 2006/05/01 12:05:09
|
|
2) [coverity] fixes:
- 279 (w32): test should be on input parametr type, not typeW
- 267 (aout): can be ignored but there was warning anyway
- 234 (w32): missing free on error & exit
- 152 (w32): missing free on error & exit
- 148 (w32): fixed bound of static array in test
- 101 (ffdec): defense code when avodec_encode_video will fail (just defense to the future,
should never happen with current ffmpeg in xine)
- 98, 99 (w32): check negative handle by _x_assert (it's used as index to array)
- 90 (w32): negate pointer check (+added check for size)
- 89 (w32): added NULL and size check
CVS patchset: 7959
CVS date: 2006/04/05 22:12:17
|
|
CVS patchset: 7946
CVS date: 2006/03/24 20:05:38
|
|
CVS patchset: 7945
CVS date: 2006/03/24 19:56:46
|
|
Patch from Chris Brien.
CVS patchset: 7922
CVS date: 2006/03/07 08:03:08
|
|
by Chris Brien
CVS patchset: 7878
CVS date: 2006/02/05 19:18:28
|
|
as reported by Reinhard Nissl
CVS patchset: 7877
CVS date: 2006/02/05 19:09:18
|
|
CVS patchset: 7848
CVS date: 2006/01/27 07:46:09
|
|
CVS patchset: 7784
CVS date: 2005/10/30 02:18:35
|
|
CVS patchset: 7733
CVS date: 2005/09/14 23:42:37
|
|
audio can be heard with non-1X speeds if audio.synchronization.slow_fast_audio is set
CVS patchset: 7726
CVS date: 2005/09/11 22:07:48
|
|
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: 7364
CVS date: 2005/01/20 11:29:43
|
|
and should check if any other application is using the device.
CVS patchset: 7282
CVS date: 2004/12/19 20:24:30
|
|
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
|
|
see this thread http://thread.gmane.org/gmane.comp.video.xine.devel/11154
CVS patchset: 7111
CVS date: 2004/11/10 07:45:29
|
|
Fixes sound volume in Totem for:
http://www.amayita.com/videos/01_Bar_Victoria.avi
24-bit amp support not implemented, still broken:
ftp://ftp.mplayerhq.hu/MPlayer/samples/A-codecs/test-96.wav
CVS patchset: 7041
CVS date: 2004/10/16 18:26:51
|
|
poor platforms, of course)
- fix a bug in generated xine-config for WIN32 and make it relocateable
under Windows
- MSVC port: update, fix some warnings, remove old unneeded files
- improve function for getting runtime directory, it will need next fix
yet (bug probably due to active volume drives)
CVS patchset: 7001
CVS date: 2004/09/26 22:54:51
|
|
- new flags added at the end, so the users can override them properly
- removed X11 libs and cflags from xine-config and libxine.pc
- removed replacing for setenv (thanks to Robin for the hint)
- better way for temporary disabling of w32dll module
- data directories will be different on Windows
- force installing catalogs with translation into XINE_LOCALEDIR
- timer linked in xine-engine (just central place for linking such stuff)
- adjusted load_plugins and remove reduntant WIN32 conditionals
- removed unused $(lib_thr)
CVS patchset: 6927
CVS date: 2004/09/01 18:19:49
|
|
(in case of major trouble just revert the patch i sent to xine-devel)
CVS patchset: 6871
CVS date: 2004/08/02 12:51:07
|
|
finished event was sent to frontend before the output fifos were empty.
add a test for the number of streams attached to the output port. this will
prevent deadlocking on multi-streams scenarios where fifos don't ever get empty.
CVS patchset: 6777
CVS date: 2004/07/06 22:53:22
|
|
(in_buf && in_buf->num_frames), otherwise, the dummy packet send by ao_exit()
to wake up the audio out loop can trigger this message
(because it has an undefined buf->format.rate, which, when 0 causes
driver->open() to fail and the message gets emitted)
we also send the message to the streams attached to this audio out only,
not to all streams known to the engine
CVS patchset: 6757
CVS date: 2004/06/27 13:33:57
|
|
CVS patchset: 6713
CVS date: 2004/06/19 20:07:15
|