Skip to content
This repository
Browse code

Merge pull request #1910 from Memphiz/paplayerfix

[paplayer] - when player is paused - don't process streams but just yield...
  • Loading branch information...
commit 45fad547f44b98fccdbe452b4b2f5dee82ffb880 2 parents 7037a5d + 470cb07
davilla authored December 10, 2012

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. 7  xbmc/cores/paplayer/PAPlayer.cpp
7  xbmc/cores/paplayer/PAPlayer.cpp
@@ -463,6 +463,13 @@ void PAPlayer::Process()
463 463
 
464 464
     double delay  = 100.0;
465 465
     double buffer = 100.0;
  466
+    
  467
+    if (IsPaused())
  468
+    {
  469
+      CThread::Sleep(10);
  470
+      continue;
  471
+    }
  472
+    
466 473
     ProcessStreams(delay, buffer);
467 474
 
468 475
     double watermark = buffer * 0.5;

0 notes on commit 45fad54

Please sign in to comment.
Something went wrong with that request. Please try again.