From: Chris Tallon Date: Mon, 20 Nov 2006 18:12:07 +0000 (+0000) Subject: Fix for windows deadlock X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=eb22fd3b9a02777193406a232cf829100ad3c32c;p=vompclient-marten.git Fix for windows deadlock --- diff --git a/player.cc b/player.cc index 75297c3..d9ddd51 100644 --- a/player.cc +++ b/player.cc @@ -859,12 +859,24 @@ void Player::threadFeedLive() preBuffering = false; preBufferTotal = 0; + +// FIXME check the win32 code on the mvp +#ifndef WIN32 audio->sync(); audio->play(); video->sync(); video->pause(); afeed.start(); vfeed.start(); +#else + afeed.start(); + vfeed.start(); + audio->sync(); + audio->play(); + video->sync(); + video->pause(); +#endif + // unLock(); // thread will be locked by play until here // FIXME - see if this can segfault because it is starting threads out of the master mutex }