Skip to content

Commit 18d6ba3

Browse files
committed
Fix crash when seeking to the end of special videos (again)
1 parent d927f44 commit 18d6ba3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/seekbarpreview/SeekbarPreviewThumbnailHolder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private void generateDataFrom(final Frameset frameset, final UUID updateRequestI
134134
// Get the bounds where the frame is found
135135
final int[] bounds = frameset.getFrameBoundsAt(currentPosMs);
136136
generatedDataForUrl.put(currentPosMs,
137-
createBitmapSupplier(srcBitMap, bounds, frameset));
137+
createBitmapSupplier(srcBitMap, bounds, frameset));
138138

139139
currentPosMs += frameset.getDurationPerFrame();
140140
pos++;
@@ -192,7 +192,7 @@ private Supplier<Bitmap> createBitmapSupplier(final Bitmap srcBitMap,
192192
// Reference: https://stackoverflow.com/a/23683075 + first comment
193193
// Fixes: https://github.com/TeamNewPipe/NewPipe/issues/11461
194194
return cutOutBitmap == srcBitMap
195-
? cutOutBitmap.copy(cutOutBitmap.getConfig(), true) : cutOutBitmap;
195+
? cutOutBitmap.copy(Bitmap.Config.ARGB_8888, true) : cutOutBitmap;
196196
};
197197
}
198198

0 commit comments

Comments
 (0)