Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL12
>
xine-lib
> xine-lib-1.1.20.1-glitch-free-pulseaudio.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File xine-lib-1.1.20.1-glitch-free-pulseaudio.patch of Package xine-lib (Revision 6)
Currently displaying revision
6
,
show latest
diff -ur xine-lib-1.1.20.orig/src/xine-engine/audio_out.c xine-lib-1.1.20/src/xine-engine/audio_out.c --- xine-lib-1.1.20.orig/src/xine-engine/audio_out.c 2010-08-16 18:36:37.000000000 +0200 +++ xine-lib-1.1.20/src/xine-engine/audio_out.c 2011-11-13 17:23:52.677415436 +0100 @@ -1156,8 +1156,17 @@ /* * calculate gap: + * + * HACK (rwa): If we have no video stream we do not need an AV sync and so + * we assume a gap of 0. This seems to avoid the skips in the + * first seconds when playing audio-only via the "glitch-free" + * pulseaudio server. */ - gap = in_buf->vpts - hw_vpts; + if (in_buf && in_buf->stream && in_buf->stream->video_decoder_plugin) { + gap = in_buf->vpts - hw_vpts; + } else { + gap = 0; + } lprintf ("hw_vpts : %" PRId64 " buffer_vpts : %" PRId64 " gap : %" PRId64 "\n", hw_vpts, in_buf->vpts, gap);