OSDN Git Service

resolved conflicts for merge of 998a929a to master
authorAndreas Huber <andih@google.com>
Tue, 29 Nov 2011 23:14:44 +0000 (15:14 -0800)
committerAndreas Huber <andih@google.com>
Tue, 29 Nov 2011 23:14:44 +0000 (15:14 -0800)
Change-Id: Id5cfbcf20e5ec28782cc88075040cf9edebfdfe8

1  2 
media/libmediaplayerservice/nuplayer/NuPlayer.cpp
media/libstagefright/mpeg2ts/ATSParser.cpp
media/libstagefright/mpeg2ts/AnotherPacketSource.cpp
media/libstagefright/mpeg2ts/MPEG2PSExtractor.cpp

@@@ -538,9 -541,12 +541,12 @@@ void NuPlayer::finishFlushIfPossible() 
          return;
      }
  
 -    LOGV("both audio and video are flushed now.");
 +    ALOGV("both audio and video are flushed now.");
  
-     mRenderer->signalTimeDiscontinuity();
+     if (mTimeDiscontinuityPending) {
+         mRenderer->signalTimeDiscontinuity();
+         mTimeDiscontinuityPending = false;
+     }
  
      if (mAudioDecoder != NULL) {
          mAudioDecoder->signalResume();