зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1440255 - Remove tabs from VideoCaptureAndroid. r=dminor
MozReview-Commit-ID: Ga3TgD9J030 --HG-- extra : rebase_source : d8edb95a541ecfb9ee391f03c5484f92865a2e2d
This commit is contained in:
Родитель
74e4bc1164
Коммит
14c26e7086
|
@ -162,11 +162,11 @@ public class VideoCaptureAndroid implements PreviewCallback, Callback {
|
|||
localPreview.addCallback(this);
|
||||
if (localPreview.getSurface() != null &&
|
||||
localPreview.getSurface().isValid()) {
|
||||
try {
|
||||
camera.setPreviewDisplay(localPreview);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
try {
|
||||
camera.setPreviewDisplay(localPreview);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// No local renderer (we only care about onPreviewFrame() buffers, not a
|
||||
|
|
Загрузка…
Ссылка в новой задаче