Prevent warning

This commit is contained in:
twinaphex 2021-10-13 18:44:27 +02:00
parent 78b861a8e8
commit aa6d3542d2

View File

@ -1075,8 +1075,12 @@ bool video_driver_started_fullscreen(void)
bool video_driver_is_threaded(void)
{
#ifdef HAVE_THREADS
video_driver_state_t *video_st = &video_driver_st;
return VIDEO_DRIVER_IS_THREADED_INTERNAL(video_st);
#else
return false;
#endif
}
bool *video_driver_get_threaded(void)
@ -1703,10 +1707,8 @@ bool video_monitor_fps_statistics(double *refresh_rate,
return false;
#endif
samples = MIN(MEASURE_FRAME_TIME_SAMPLES_COUNT,
(unsigned)video_st->frame_time_count);
if (samples < 2)
if ((samples = MIN(MEASURE_FRAME_TIME_SAMPLES_COUNT,
(unsigned)video_st->frame_time_count)) < 2)
return false;
/* Measure statistics on frame time (microsecs), *not* FPS. */