Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@ianko
Copy link
Contributor

@ianko ianko commented May 2, 2019

Description

After, or while in process of, disposing the VideoController, the bufferingUpdate is still being fired which causes the ChangeNotifier._debugAssertNotDisposed to fail.

I am adding the verification of the _dispose flag before applying any change to the value variable.

Related Issues

flutter/flutter#25936

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • No, this is not a breaking change.

@iskakaushik
Copy link
Contributor

Hi, thanks for your contribution.

I don't think this addresses flutter/flutter#30238, could you please remove that from your related issues please.

Could you also update the version number, thanks!

…ontroller_dispose

# Conflicts:
#	packages/video_player/CHANGELOG.md
#	packages/video_player/pubspec.yaml
@ianko
Copy link
Contributor Author

ianko commented May 29, 2019

@iskakaushik done.

@ermissa
Copy link

ermissa commented Jun 11, 2019

We made a commercial app with Flutter that has thousands of users which is using video controller plugin. It would be perfect if this PR was accepted. So we won't have to use our fork. Thanks for PR and also effort of Flutter team!

Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyanglaz cyanglaz merged commit 319adc2 into flutter:master Jul 18, 2019
mithun-mondal pushed a commit to bKash-developer/archived_plugins that referenced this pull request Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants