@@ -71,6 +71,7 @@ class Settings with ChangeNotifier, SettingsAccess, SearchSettings, AppSettings,
7171 _unregister ();
7272 _register (monitorPlatformSettings);
7373 initAppSettings ();
74+ await sanitize ();
7475 }
7576
7677 void _unregister () {
@@ -184,6 +185,11 @@ class Settings with ChangeNotifier, SettingsAccess, SearchSettings, AppSettings,
184185 set (SettingKeys .videoBackgroundModeKey, null );
185186 }
186187 collectionBurstPatterns = collectionBurstPatterns.where (BurstPatterns .options.contains).toList ();
188+
189+ // emulator
190+ if (! device.isPhysicalDevice) {
191+ set (SettingKeys .videoHardwareAccelerationKey, VideoHardwareAcceleration .disabled);
192+ }
187193 }
188194
189195 // tag editor
@@ -383,7 +389,6 @@ class Settings with ChangeNotifier, SettingsAccess, SearchSettings, AppSettings,
383389 case SettingKeys .viewerGestureSideTapNextKey:
384390 case SettingKeys .viewerUseCutoutKey:
385391 case SettingKeys .enableMotionPhotoAutoPlayKey:
386- case SettingKeys .enableVideoHardwareAccelerationKey:
387392 case SettingKeys .videoGestureDoubleTapTogglePlayKey:
388393 case SettingKeys .videoGestureSideDoubleTapSeekKey:
389394 case SettingKeys .videoGestureVerticalDragBrightnessVolumeKey:
@@ -426,6 +431,7 @@ class Settings with ChangeNotifier, SettingsAccess, SearchSettings, AppSettings,
426431 case SettingKeys .imageBackgroundKey:
427432 case SettingKeys .videoAutoPlayModeKey:
428433 case SettingKeys .videoBackgroundModeKey:
434+ case SettingKeys .videoHardwareAccelerationKey:
429435 case SettingKeys .videoLoopModeKey:
430436 case SettingKeys .videoResumptionModeKey:
431437 case SettingKeys .subtitleTextAlignmentKey:
0 commit comments