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/xine-engine/xine_interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/xine-engine/xine_interface.c') diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index e1a8abcb0..9ea2ffbd5 100644 --- a/src/xine-engine/xine_interface.c +++ b/src/xine-engine/xine_interface.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_interface.c,v 1.78 2004/02/12 18:19:12 mroi Exp $ + * $Id: xine_interface.c,v 1.79 2004/02/16 20:19:10 uid86226 Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -329,7 +329,9 @@ void xine_set_param (xine_stream_t *stream, int param, int value) { switch (param) { case XINE_PARAM_SPEED: + pthread_mutex_lock (&stream->frontend_lock); _x_set_speed (stream, value); + pthread_mutex_unlock (&stream->frontend_lock); break; case XINE_PARAM_AV_OFFSET: -- cgit v1.2.3