diff options
author | Dharmaray Kundargi <dharmaray@google.com> | 2011-01-29 18:52:50 -0800 |
---|---|---|
committer | Dharmaray Kundargi <dharmaray@google.com> | 2011-01-29 18:52:50 -0800 |
commit | 53c567c3355255ed12dd9f5d5a1c58f821770329 (patch) | |
tree | ea6769aabd4249d3726d421a67ccbffa882cfcba /libvideoeditor/lvpp/DummyVideoSource.cpp | |
parent | 8a838ad9f3b1568fce1606fd4b33a7b705064839 (diff) | |
download | frameworks_av-53c567c3355255ed12dd9f5d5a1c58f821770329.zip frameworks_av-53c567c3355255ed12dd9f5d5a1c58f821770329.tar.gz frameworks_av-53c567c3355255ed12dd9f5d5a1c58f821770329.tar.bz2 |
Fix issue 3369917 :Audio skips at clip edit points
Change-Id: Ibfdcf7511efe054cd41bc36690696c6eddd2e500
Diffstat (limited to 'libvideoeditor/lvpp/DummyVideoSource.cpp')
-rwxr-xr-x | libvideoeditor/lvpp/DummyVideoSource.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libvideoeditor/lvpp/DummyVideoSource.cpp b/libvideoeditor/lvpp/DummyVideoSource.cpp index 4dbdc11..58487b2 100755 --- a/libvideoeditor/lvpp/DummyVideoSource.cpp +++ b/libvideoeditor/lvpp/DummyVideoSource.cpp @@ -42,7 +42,7 @@ namespace android { sp<DummyVideoSource> DummyVideoSource::Create (
- uint32_t width, uint32_t height,
+ uint32_t width, uint32_t height,
uint64_t clipDuration, const char *imageUri) {
LOG2("DummyVideoSource::Create ");
sp<DummyVideoSource> vSource = new DummyVideoSource (
@@ -52,7 +52,7 @@ sp<DummyVideoSource> DummyVideoSource::Create ( DummyVideoSource::DummyVideoSource (
- uint32_t width, uint32_t height,
+ uint32_t width, uint32_t height,
uint64_t clipDuration, const char *imageUri) {
LOG2("DummyVideoSource::DummyVideoSource constructor START");
@@ -119,8 +119,8 @@ sp<MetaData> DummyVideoSource::getFormat() { return meta;
}
-status_t DummyVideoSource::read(
- MediaBuffer **out,
+status_t DummyVideoSource::read(
+ MediaBuffer **out,
const MediaSource::ReadOptions *options) {
status_t err = OK;
MediaBuffer *buffer;
@@ -133,6 +133,7 @@ status_t DummyVideoSource::read( if (options && options->getSeekTo(&seekTimeUs, &seekMode)) {
seeking = true;
mImageSeekTime = seekTimeUs;
+ M4OSA_clockGetTime(&mImagePlayStartTime, 1000); //1000 time scale for time in ms
}
if ((mImageSeekTime == mImageClipDuration) || (mFrameTimeUs == mImageClipDuration)) {
|