]> git.vomp.tv Git - vompclient.git/commitdiff
Fix for windows deadlock
authorChris Tallon <chris@vomp.tv>
Mon, 20 Nov 2006 18:12:07 +0000 (18:12 +0000)
committerChris Tallon <chris@vomp.tv>
Mon, 20 Nov 2006 18:12:07 +0000 (18:12 +0000)
player.cc

index 75297c38391f351f1a122d00592c7261116df85d..d9ddd510a691e8aa7d16afdceac11aaea84d28e0 100644 (file)
--- 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
       }