From 0898df6535708e8896511a922c6fe058e6dd52c1 Mon Sep 17 00:00:00 2001 From: Kfir Itzhak Date: Fri, 6 Jun 2014 09:01:03 +0300 Subject: [PATCH] Fix minor bug --- src/zm_video.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zm_video.cpp b/src/zm_video.cpp index 581be1b52..65e4a32e8 100644 --- a/src/zm_video.cpp +++ b/src/zm_video.cpp @@ -190,14 +190,15 @@ int X264MP4Writer::Close() { } int X264MP4Writer::Reset(const char* new_path) { - - VideoWriter::Reset(new_path); /* Close the encoder and file */ if(bOpen) Close(); - /* Reset variables */ + /* Reset common variables */ + VideoWriter::Reset(new_path); + + /* Reset local variables */ bFirstFrame = true; bGotH264AVCInfo = false; prevnals.clear();