Reset HDR when decoder crashes 3 times in a row

This commit is contained in:
Cameron Gutman 2017-11-25 13:21:04 -08:00
parent 02c4ed2724
commit 99d2e40683

View File

@ -143,12 +143,13 @@ public class PreferenceConfiguration {
}
public static void resetStreamingSettings(Context context) {
// We consider resolution, FPS, bitrate, and video format as "streaming settings" here
// We consider resolution, FPS, bitrate, HDR, and video format as "streaming settings" here
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit()
.remove(BITRATE_PREF_STRING)
.remove(RES_FPS_PREF_STRING)
.remove(VIDEO_FORMAT_PREF_STRING)
.remove(ENABLE_HDR_PREF_STRING)
.apply();
}