Skip to content

Commit 04eb802

Browse files
committed
fix: getSnapshot method to return null instead of an empty string when textureView is null
1 parent 1fb904a commit 04eb802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ void castToRenderer(String rendererDevice) {
637637

638638
@Nullable
639639
String getSnapshot() {
640-
if (textureView == null) return "";
640+
if (textureView == null) return null;
641641

642642
Bitmap bitmap = textureView.getBitmap();
643643
if (bitmap == null) return null;

0 commit comments

Comments
 (0)