summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-07-21Remove duplicate codeLorenzo Desole
2010-07-210 → NULL for consistency.Darren Salt
2010-07-21Add NetBSD support to the VCD input pluginMatthias Drochner
--HG-- extra : rebase_source : cfee1d5353fa3cacf4df8712fde15cd94e2ee3d4
2010-07-18Fix metronome not getting audio PTSGünter Merz
The xine libmad adaptor seemed not to forward the pts to the metronome: It buffers the MPEG audio packets until a threshold is reached (MAD_MIN_SIZE: 2889 bytes) and then has libmad decode the packets which is send to audio out. The pts of the last audio packet is forwarded on to metronome which can then sync video with audio. For the channel4 channels MPEG audio packets have a size of 576 bytes which means it takes five packets to fill the buffer enough for processing. In the stream every fifth audio packet contains a pts. The result of this is: If after a seek, the last audio packet is the one with the pts, video and audio are in sync. If the pts is in any of the four previous ones no pts will reach metronome and video and audio will never be synced before a new seek and even then there's a one in five chance that video and audio are not synced. Other channels did not show this behaviour because e.g. BBC One has an audio packet size of about 750 bytes and send a pts every fifth packet as well. This means that not every pts from the stream gets through to metronome but some do. This also means that syncing after a seek is probably not as quick as it could be but it will sync. My workaround to this problem is to start decoding not only when a the buffer has reached a threshold but also when a pts != 0 arrives. This does mean however that the buffer isn't always filled to the theshold and decoding might not perform as well as it could. --HG-- extra : transplant_source : %EC%90%EB%AA%8A%C7%BD%A4%B7%EE%F5%E9%E8SY%89S%9D0s
2010-07-21Add _POSIX_THREAD_PRIORITY_SCHEDULING #ifdefsMatthias Drochner
This is optional, and some systems don't support it. POSIX defines the _POSIX_THREAD_PRIORITY_SCHEDULING to tell that support is present.
2010-07-21Advance buffer pointer after readMatthias Drochner
In dvd_input.c:file_read(), if the read is not done in a single access, the buffer pointer doesn't get advanced so that the second read overwrites the data of the first. I actually don't remember under which circumstances this could happen, but the flaw in the code is obvious. The patch is from NetBSD's pkgsrc, and this patch is attributed to an "unnamed contributor" in the CVS log.
2010-07-21Normalize timevalMatthias Drochner
In demux_loop(), a time value is calculated by adding to the fractional part. In case a second barrier is crossed, the value is not in its canonical form anymore - the fractional part is larger than 10^9-1. It should be normalized for portability. While I haven't found a formal requirement for this in POSIX, NetBSD's libpthread checks for it and complains.
2010-07-20Missing mutex initMatthias Drochner
2010-07-19Fix a few small memory leaks.Darren Salt
2010-07-19Fix a potential freeing of unallocated memory.Darren Salt
2010-07-19Explicitly report unhandled codecs (in Matroska).Darren Salt
2010-07-18Fix playback of the first file handled by the modplug demuxer.Darren Salt
2010-07-18Recognise ScreamTracker files. ST3 is untested.Darren Salt
2010-07-18Add audio/ac3.Darren Salt
2010-07-08Set default volume value at init time (pulseaudio)Lorenzo Desole
2010-07-17"Configuration loaded" log item.Darren Salt
2010-05-22Recognise and handle the WebM container format.Darren Salt
Currently, just treat it exactly as if it were Matroska.
2010-01-30BluRay subtitles in matroskaPetri Hintukainen
2010-04-20remove the unneeded unistd.h and fix compatibility for msvcShixin Zeng
2010-04-29add /usr/lib64/codecs as real binary codec locationAnssi Hannula
Mplayer now only supports single location for all binary codecs, and therefore on Mandriva packaging /usr/lib(64)/codecs was selected as the directory where mplayer will try to load them from. The 64-bit variant is missing from xine-lib (/usr/lib/codecs is there). Attached patch adds it.
2010-04-29Minor C99ism.Darren Salt
2010-02-21Typo fixUlrich Eckhardt
2010-04-12C89 fixShixin Zeng
2010-04-11Report NBC buffer stats to the application using new event XINE_EVENT_NBC_STATSFrank Enderle
This event reports the buffer status for network streams (NBC) back to the application, providing a way to measure if the stream delivers data fast enough. This enables the application to slow down the stream playback to get the buffers filling more quickly. (This is only a sample application of the event.) The event reports all vital data like fill percentage, remaining buffer in seconds and discontinuity, separately for audio and video, whether the nbc layer is actually buffering, the operation type (put or get) and also if the buffering is enabled at all. In essence, it's the output you get from nbc if you run xine-lib in verbose mode on the console, but in raw data.
2009-12-16TTA demux: use _x_demux_send_dataKelvie Wong
To reduce code duplication.
2010-04-11Fix a flaw on recovering from ALSA-reported errors in ao_alsa_delay()Frank Enderle
I noticed some alsa dropouts (losing audio) while hunting a bug which has been related to a broken streaming server. This resulted in buffers running empty and therefore showed some issues in the ALSA driver not correctly applying some recovery procedures provided by ALSA itself (snd_pcm_recover() and friends).
2010-04-09Minor indentation cleanup.Darren Salt
2010-04-09Add eac3 support to demux_tsJose Alberto Reguero
2010-04-08Add support for Xv gamma adjustment.Darren Salt
2010-04-02demux_tta: fix some dumb truncation errorsKelvie Wong
I don't know why I multiplied by integers _outside_ the parentheses. I blame late nights. Regardless, this fixes the skip every 24 seconds due to the truncation of FRAME_TIME. The input_time is also more accurate for e.g. stopping cue tracks.
2010-04-07Add video/mp2t (and the corresponding video/mp2p).Darren Salt
2010-03-23Demux EAC3 audio from matroskaPetri Hintukainen
(Sample: http://samples.mplayerhq.hu/Matroska/H264%2bEAC3.mkv )
2010-03-23Added new audio buffer type (EAC3)Petri Hintukainen
2010-03-23Fixed using uninitialized decode_buffer_sizePetri Hintukainen
2010-03-20demux: Fix the pts values for the TrueAudio demuxKelvie Wong
This makes seeking more accurate, I believe.
2010-03-22Add support for Ogg tag 'DISCNUMBER' and ID3 tag 'TPOS'.Darren Salt
2010-03-10Make buildable with current (external) libdvdnav & libdvdread.Darren Salt
2010-03-10Handle odd widths properly (for ffmpeg-decoded video).Darren Salt
2010-02-25Fix build with the old, outdated and deprecated internal ffmpeg.Darren Salt
2010-02-25Compiler warning fixes.Darren Salt
2010-02-25isatty() takes an int, not a FILE *.Darren Salt
2010-02-25Fix a size check (wrong variable, causing int/ptr comparison) in rmff.c.Darren Salt
2010-02-24Fix up V4L/V4L2 for non-Linux.Darren Salt
2010-02-21Avoid invalid fstat calls when opening empty filesUlrich Eckhardt
When opening empty files with xine, it reports: > This is xine (X11 gui) - a free video player v0.99.6cvs. > (c) 2000-2007 The xine Team. > system call fstat: Bad file descriptor > system call fstat: Bad file descriptor > call failed > object not accessible > object not accessible > call failed The problem was that when detecting an empty file, it is closed, but the file descriptor in struct file_input_plugin_t is still left at the previous value, causing the errors when it is used later.
2010-02-24src/dxr3/compat.h needs to be in the tarball...Darren Salt
2009-09-15Add locking for when adjusting audio frame discarding.Roger Scott
2010-02-23Prevent discard_{frames,buffers} from going negative.Darren Salt
Based on patches from Roger Scott <ras351@hotmail.com>.
2010-02-21WMAPro supportChristopher Martin
Rename "wmav3" to "wmapro" in xine-lib's internals to line up xine-lib's nomenclature with what everyone else calls it and knows it as. [Tweaked by ds to avoid API change.] Tell xine-lib that when it finds wmapro, look to ffmpeg. ffmpeg's wmapro decoder is unique in that it puts out samples that are floats, not 16-bit ints. These need to be converted. This requires external ffmpeg.
2010-02-22Swap round if/while in LPCM 24-bit handling.Darren Salt
This will reduce logspam with little-endian streams, which Can't Happen anyway.
2010-01-10Fix LPCM 24bit byte streamAoi Shinkai
I have LCPM 24bit DVD. When I played it on xine, sound was noisy noise. I found that LCPM 24bit byte stream is _not_ the same as WAVE 24bit byte stream.