summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Auras <yak54@inkennet.de>2011-03-03 19:45:43 +0100
committerAndreas Auras <yak54@inkennet.de>2011-03-03 19:45:43 +0100
commit4a2d27767b078b2e05fa45228786eaa6dd4c6ad5 (patch)
treed0b9d25f823802a8445b1b54c01c03070fc6c144
parente0e84cc6982dc5b443b3141acfb360bc9b3f2fcc (diff)
downloadxine-lib-atmolight-4a2d27767b078b2e05fa45228786eaa6dd4c6ad5.tar.gz
xine-lib-atmolight-4a2d27767b078b2e05fa45228786eaa6dd4c6ad5.tar.bz2
Wait for threads to stop before starting new ones
Should fix issue if port close/open happens too fast
-rw-r--r--xine_post_atmo.c1
1 files changed, 1 insertions, 0 deletions
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;