diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2009-02-09 22:09:28 -0200 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2009-02-09 22:09:28 -0200 |
commit | 8f9a6421c30167b2bf314d512ae70b27d0167bb1 (patch) | |
tree | ed5f8b2c71ef01d4df40c8fb2f5b6b9deda2b612 /src/xine-engine/audio_out.c | |
parent | b69cc6330e66260238abf75164f18db17337ba20 (diff) | |
download | xine-lib-8f9a6421c30167b2bf314d512ae70b27d0167bb1.tar.gz xine-lib-8f9a6421c30167b2bf314d512ae70b27d0167bb1.tar.bz2 |
Fix race conditions in gapless_switch (ref. kde bug #180339)
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r-- | src/xine-engine/audio_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index d28c45ea6..43553875e 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -1609,7 +1609,7 @@ static void ao_close(xine_audio_port_t *this_gen, xine_stream_t *stream) { pthread_mutex_unlock(&this->streams_lock); /* close driver if no streams left */ - if (!ite && !this->grab_only && !stream->gapless_switch) { + if (!ite && !this->grab_only && !stream->keep_ao_driver_open) { xprintf (this->xine, XINE_VERBOSITY_DEBUG, "audio_out: no streams left, closing driver\n"); if (this->audio_loop_running) { |