Only log debug message about excluding audio if there is an audio stream

pull/2077/head
Isaac Connor 2018-01-17 09:53:03 -05:00
parent 7f4deef4a9
commit 687d797303
1 changed files with 3 additions and 1 deletions

View File

@ -832,7 +832,9 @@ int FfmpegCamera::CaptureAndRecord( Image &image, timeval recording, char* event
this->getMonitor()); this->getMonitor());
} }
} else { } else {
Debug(3, "Record_audio is false so exclude audio stream"); if ( mAudioStreamId >= 0 ) {
Debug(3, "Record_audio is false so exclude audio stream");
}
videoStore = new VideoStore((const char *) event_file, "mp4", videoStore = new VideoStore((const char *) event_file, "mp4",
mFormatContext->streams[mVideoStreamId], mFormatContext->streams[mVideoStreamId],
NULL, NULL,