From 5807b51c46b31abe0fecedb8f1a783f2bd74a18d Mon Sep 17 00:00:00 2001 From: uid86226 Date: Mon, 16 Feb 2004 20:19:09 +0000 Subject: fix freezes with input plugins that play with the speed: * use _x_set_speed() for speed manipulations, since it is ticket-safe * _x_set_speed() is an internal helper function now, move frontend locking outside of it * restrict access to metronom clock internal stuff CVS patchset: 6165 CVS date: 2004/02/16 20:19:09 --- src/input/net_buf_ctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input/net_buf_ctrl.c') diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c index e5b720a55..b8d44a3b3 100644 --- a/src/input/net_buf_ctrl.c +++ b/src/input/net_buf_ctrl.c @@ -99,13 +99,13 @@ static void report_progress (xine_stream_t *stream, int p) { static void nbc_set_speed_pause (xine_stream_t *stream) { xprintf(stream->xine, XINE_VERBOSITY_DEBUG, "\nnet_buf_ctrl: nbc_put_cb: set_speed_pause\n"); - stream->xine->clock->set_speed (stream->xine->clock, XINE_SPEED_PAUSE); + _x_set_speed(stream, XINE_SPEED_PAUSE); stream->xine->clock->set_option (stream->xine->clock, CLOCK_SCR_ADJUSTABLE, 0); } static void nbc_set_speed_normal (xine_stream_t *stream) { xprintf(stream->xine, XINE_VERBOSITY_DEBUG, "\nnet_buf_ctrl: nbc_put_cb: set_speed_normal\n"); - stream->xine->clock->set_speed (stream->xine->clock, XINE_SPEED_NORMAL); + _x_set_speed(stream, XINE_SPEED_NORMAL); stream->xine->clock->set_option (stream->xine->clock, CLOCK_SCR_ADJUSTABLE, 1); } -- cgit v1.2.3