Skip to content

Commit

Permalink
(imp) flutter: UvcCameraController to expose initialization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhionan authored and alexey-pelykh committed Dec 17, 2024
1 parent ffa6e07 commit ede5297
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flutter/lib/src/uvccamera_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ class UvcCameraController extends ValueNotifier<UvcCameraControllerState> {
device: device,
previewMode: previewMode,
);
} finally {

initializeCompleter.complete();
} catch (e) {
initializeCompleter.completeError(e);
}
}

Expand Down

0 comments on commit ede5297

Please sign in to comment.