From dc5ccd04ef72b3a02a70cae4f3a580107c348c6c Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 22 May 2018 11:31:03 -0400 Subject: [PATCH] Update thumbnail with high scoring image. --- src/zm_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 721f1a3b5..f55f4f1a5 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -520,7 +520,7 @@ void Event::AddFrame(Image *image, struct timeval timestamp, int score, Image *a } } else { //If this is the first frame, we should add a thumbnail to the event directory - if ( frames == 1 ) { + if ( frames == 1 || score > (int)max_score ) { char snapshot_file[PATH_MAX]; snprintf(snapshot_file, sizeof(snapshot_file), "%s/snapshot.jpg", path); WriteFrameImage(image, timestamp, snapshot_file);