fail if zm_path_ffmpeg not set

This commit is contained in:
Andrew Bauer 2018-07-17 06:57:38 -05:00 committed by GitHub
parent 0ff9002adf
commit 455204135d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,12 @@ my $cwd = getcwd;
my $video_name; my $video_name;
my @event_ids; my @event_ids;
# Fail if the path to a valid ffmpeg binary is not set
if ( ! -x $Config{ZM_PATH_FFMPEG} ) {
Fatal("Ffmpeg binary not found or not executable. Verify ZM_PATH_FFMPEG points to ffmpeg, avconv, or a compatible binary.");
}
if ( $event_id ) { if ( $event_id ) {
@event_ids = ( $event_id ); @event_ids = ( $event_id );