Repository: flutter
Issue: ImageReader: Failed to release buffer: Unknown error
Labels: p: camera,package,team-ecosystem,has reproducible steps,P2,found in release: 2.2,found in release: 2.5,triaged-ecosystem

The CameraController stores old values of the camera image stream after getting disposed and when initialize it a second time it has already image data which will be falsely analyzed. 

## Steps to Reproduce

1. Clone repo: https://github.com/sebastianbuechler/flutter_iban_scanner
2. Run the example app
3. Scan an example IBAN number like CH93 0076 2011 6238 5295 7
4. Click in the resulting dialog on "retry" to scan again
5. Without showing something the ImageStream will provide the scanner with old data and give again the same result
6. In the logs there appears: E/BufferItemConsumer(21403): [ImageReader-1280x720f23m2-21403-23] Failed to release buffer: Unknown error -1 (1)


**Expected results:** 
The CameraController should be loaded freshly on the second try and therefore not save old stream data.

**Actual results:**
The camera itself does not even load new images into the stream on the second try because the stream already has data populated and the analyzer function stops the stream because of a successful (old) result.

<details>

```
$ flutter doctor -v
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1165], locale de-CH)
    • Flutter version 2.2.3 at C:\src\flutter
    • Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4
    • Pub download mirror https://pub.dev

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc2)
    • Android SDK at C:\Users\SebastianBuechler\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.0-rc2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)       
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code (version 1.58.2)
    • VS Code at C:\Users\SebastianBuechler\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.25.0

[√] Connected device (4 available)
    • Redmi 5A (mobile)                     • d526d3aa7ce5  • android-arm64  • Android 8.1.0 (API 27)
    • Android SDK built for x86 64 (mobile) • emulator-5554 • android-x64    • Android 10 (API 29) (emulator)
    • Chrome (web)                          • chrome        • web-javascript • Google Chrome 92.0.4515.131
    • Edge (web)                            • edge          • web-javascript • Microsoft Edge 91.0.864.71

• No issues found!
```

</details>