Fix for 3369917 Audio skips at clip edit points

Change-Id: Iba66585cc2e679475d8db529d6113586b58e626e
diff --git a/libvideoeditor/lvpp/DummyAudioSource.h b/libvideoeditor/lvpp/DummyAudioSource.h
index a562bc1..6e6ead4 100755
--- a/libvideoeditor/lvpp/DummyAudioSource.h
+++ b/libvideoeditor/lvpp/DummyAudioSource.h
@@ -45,8 +45,9 @@
     virtual status_t start(MetaData *params = NULL);

     virtual status_t stop();

     virtual sp<MetaData> getFormat();

-    virtual status_t read (MediaBuffer **buffer, 

+    virtual status_t read (MediaBuffer **buffer,

                             const MediaSource::ReadOptions *options = NULL);

+    void setDuration (int64_t audioDurationUs);

 

 protected:

     DummyAudioSource (int32_t samplingRate,

@@ -63,6 +64,8 @@
     int64_t mAudioDurationUs;

     int64_t mTimeStampUs;

     int32_t mNbBuffer;

+    Mutex mLock;

+

     MediaBufferGroup *mBufferGroup;

 

     DummyAudioSource(const DummyAudioSource &);