diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-02-12 18:19:44 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-02-12 18:19:44 +0000 |
commit | ee37b9c35aa5694d31e932c7b2bbb273b1055ad6 (patch) | |
tree | 2174fcc5f0f06448f71e7d02dfa1c3ccabddd943 /src | |
parent | ca2ac6410b4f348e0aaba232eb089d78bc0fbdfa (diff) | |
download | xine-lib-ee37b9c35aa5694d31e932c7b2bbb273b1055ad6.tar.gz xine-lib-ee37b9c35aa5694d31e932c7b2bbb273b1055ad6.tar.bz2 |
acquire the ticket on engine flush
CVS patchset: 6138
CVS date: 2004/02/12 18:19:44
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/demux.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c index 9d4002271..3aeb292f0 100644 --- a/src/xine-engine/demux.c +++ b/src/xine-engine/demux.c @@ -20,7 +20,7 @@ * Demuxer helper functions * hide some xine engine details from demuxers and reduce code duplication * - * $Id: demux.c,v 1.45 2004/01/11 15:54:23 jstembridge Exp $ + * $Id: demux.c,v 1.46 2004/02/12 18:19:44 mroi Exp $ */ @@ -66,6 +66,8 @@ void _x_demux_flush_engine (xine_stream_t *stream) { buf_element_t *buf; + + stream->xine->port_ticket->acquire(stream->xine->port_ticket, 1); if (stream->video_out) { stream->video_out->set_property(stream->video_out, VO_PROP_DISCARD_FRAMES, 1); @@ -99,6 +101,8 @@ void _x_demux_flush_engine (xine_stream_t *stream) { stream->audio_out->flush(stream->audio_out); stream->audio_out->set_property(stream->audio_out, AO_PROP_DISCARD_BUFFERS, 0); } + + stream->xine->port_ticket->release(stream->xine->port_ticket, 1); } |