Skip to content

Commit 433a8ce

Browse files
committedJul 23, 2016
Bug fix for: The producer output buffer format 0x1 doesn't match the ImageReader's configured buffer format 0x2
1 parent 18e75ee commit 433a8ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
applicationId "info.dvkr.screenstream"
1212
minSdkVersion 21
1313
targetSdkVersion 24
14-
versionCode 2
15-
versionName "1.0.1"
14+
versionCode 3
15+
versionName "1.0.2"
1616

1717
resConfigs "en", "ru"
1818
}

‎app/src/main/java/info/dvkr/screenstream/ImageGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void start() {
9191

9292
imageThread = new HandlerThread("Image capture thread", Process.THREAD_PRIORITY_MORE_FAVORABLE);
9393
imageThread.start();
94-
imageReader = ImageReader.newInstance(ApplicationContext.getScreenSize().x, ApplicationContext.getScreenSize().y, PixelFormat.RGBX_8888, 2);
94+
imageReader = ImageReader.newInstance(ApplicationContext.getScreenSize().x, ApplicationContext.getScreenSize().y, PixelFormat.RGBA_8888, 2);
9595
imageHandler = new Handler(imageThread.getLooper());
9696
jpegOutputStream = new ByteArrayOutputStream();
9797
imageReader.setOnImageAvailableListener(new ImageAvailableListener(), imageHandler);

0 commit comments

Comments
 (0)
Failed to load comments.