diff options
author | uid86226 <none@none> | 2004-02-16 20:19:09 +0000 |
---|---|---|
committer | uid86226 <none@none> | 2004-02-16 20:19:09 +0000 |
commit | 5807b51c46b31abe0fecedb8f1a783f2bd74a18d (patch) | |
tree | db5924af7c3bf12972a2e99854a76b8914d1fb99 /src/xine-engine/xine_interface.c | |
parent | 76b4bde43bb287a9b4cbfe92b4af5e1dd40ee311 (diff) | |
download | xine-lib-5807b51c46b31abe0fecedb8f1a783f2bd74a18d.tar.gz xine-lib-5807b51c46b31abe0fecedb8f1a783f2bd74a18d.tar.bz2 |
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
Diffstat (limited to 'src/xine-engine/xine_interface.c')
-rw-r--r-- | src/xine-engine/xine_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
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: |