From 4a2d27767b078b2e05fa45228786eaa6dd4c6ad5 Mon Sep 17 00:00:00 2001 From: Andreas Auras Date: Thu, 3 Mar 2011 19:45:43 +0100 Subject: Wait for threads to stop before starting new ones Should fix issue if port close/open happens too fast --- xine_post_atmo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xine_post_atmo.c b/xine_post_atmo.c index c8cd69c..71e5ecd 100644 --- a/xine_post_atmo.c +++ b/xine_post_atmo.c @@ -1417,6 +1417,7 @@ static void atmo_video_open(xine_video_port_t *port_gen, xine_stream_t *stream) _x_post_inc_usage(port); pthread_mutex_lock(&this->port_lock); + stop_threads(this, 1); (port->original_port->open) (port->original_port, stream); port->stream = stream; this->port = port; -- cgit v1.2.3