Skip to content

Commit

Permalink
remove Finalizer. value and token can't be the same wang-bin#51
Browse files Browse the repository at this point in the history
fix error in flutter 3.16
  • Loading branch information
wang-bin committed Nov 16, 2023
1 parent 22a8491 commit cfb879e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/src/player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Player {

Player() {
_pp.value = _player;
_fi.attach(this, this);
_receivePort.listen((message) async {
final type = message[0] as int;
final rep = calloc<_CallbackReply>();
Expand Down Expand Up @@ -640,11 +639,6 @@ class Player {
final _player = Libmdk.instance.mdkPlayerAPI_new();
var _pp = calloc<Pointer<mdkPlayerAPI>>();

static final _fi = Finalizer((p0) {
final p = p0 as Player;
p.dispose();
});

int _texId = -1;
var _videoSize = Completer<ui.Size?>();
var _prepared = Completer<int>();
Expand Down

0 comments on commit cfb879e

Please sign in to comment.