Skip to content

Commit 74d26a6

Browse files
authored
Fix plugin destructor (#332)
Fixes #237
1 parent 7e82a4b commit 74d26a6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

flutter_vlc_player/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 7.1.4
2+
* Fix plugin destructor (https://github.com/solid-software/flutter_vlc_player/issues/237)
3+
14
## 7.1.3
25
* Added support for multi-window mode in Android.
36
Credits to Andy Chentsov (https://github.com/andyduke).

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ private static void startListening() {
105105
}
106106

107107
private static void stopListening() {
108-
if (flutterVlcPlayerFactory != null)
108+
if (flutterVlcPlayerFactory != null) {
109109
flutterVlcPlayerFactory.stopListening();
110+
flutterVlcPlayerFactory = null;
111+
}
110112
}
111113
}

flutter_vlc_player/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_vlc_player
22
description: A VLC-powered alternative to Flutter's video_player. Supports multiple players on one screen.
3-
version: 7.1.3
3+
version: 7.1.4
44
homepage: https://github.com/solid-software/flutter_vlc_player/
55

66
environment:

0 commit comments

Comments
 (0)