From 8a4a530cf3c6fd9e8c9416fbe28469a2b36b60d3 Mon Sep 17 00:00:00 2001 From: BlueMax <1403092+BlueMax@users.noreply.github.com> Date: Tue, 16 Nov 2021 19:50:17 +0000 Subject: [PATCH 1/2] fix posix/musl build --- src/zm_stream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_stream.cpp b/src/zm_stream.cpp index 4b7ddc05e..0fb8f001a 100644 --- a/src/zm_stream.cpp +++ b/src/zm_stream.cpp @@ -26,6 +26,7 @@ #include #include #include +#include StreamBase::~StreamBase() { #if HAVE_LIBAVCODEC From a0b60aa4f708ae7e4a8bf77f699ecfa6449b5527 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 17 Nov 2021 11:04:28 -0500 Subject: [PATCH 2/2] Restore inclusion of video files in export when not including images. Fixes #3324 --- web/skins/classic/includes/export_functions.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/includes/export_functions.php b/web/skins/classic/includes/export_functions.php index 0e348152f..f34d53546 100644 --- a/web/skins/classic/includes/export_functions.php +++ b/web/skins/classic/includes/export_functions.php @@ -786,7 +786,7 @@ function exportFileList( } closedir($dir); } - ZM\Debug(print_r($files, true)); + ZM\Debug('All available files: '.print_r($files, true)); $exportFileList = array(); @@ -843,6 +843,18 @@ function exportFileList( ZM\Debug('Not including frame images'); } # end if exportImages + if ($exportVideo) { + $filesLeft = array(); + foreach ($files as $file) { + if (preg_match('/\.(?:mpg|mpeg|mov|swf|mp4|mkv|avi|asf|3gp)$/', $file)) { + $exportFileList[$file] = $file; + } else { + $filesLeft[$file] = $file; + } + } + $files = $filesLeft; + } + if ($exportMisc) { foreach ($files as $file) { $exportFileList[$file] = $file;