From ee37b9c35aa5694d31e932c7b2bbb273b1055ad6 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Thu, 12 Feb 2004 18:19:44 +0000 Subject: acquire the ticket on engine flush CVS patchset: 6138 CVS date: 2004/02/12 18:19:44 --- src/xine-engine/demux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3