[Android] Fix video screenshot sizing
Nicolas Pomepuy
git at videolan.org
Tue Sep 24 06:32:16 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Sep 18 10:00:57 2024 +0200| [c619725b0327601e06b3d26c086f11aeffd80527] | committer: Nicolas Pomepuy
Fix video screenshot sizing
Fixes #3087
> https://code.videolan.org/videolan/vlc-android/commit/c619725b0327601e06b3d26c086f11aeffd80527
---
.../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index c0d601eb20..8219d82eba 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -1120,7 +1120,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
height = it.getHeight()
}
if (width == 0) width = surface.width
- if (height == 0) height = surface.width
+ if (height == 0) height = surface.height
try {
val bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)
val simpleDateFormat = SimpleDateFormat("yyyyMMdd_HHmmss")
More information about the Android
mailing list