Skip to content

Commit

Permalink
FrameMapper: Eliminate is_open member variable
Browse files Browse the repository at this point in the history
It was being used uninitialized because it's never actually set,
therefore it serves no purpose.
  • Loading branch information
ferdnyc committed Mar 22, 2020
1 parent 9998876 commit 3680144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/FrameMapper.h
Expand Up @@ -138,7 +138,6 @@ namespace openshot
*/
class FrameMapper : public ReaderBase {
private:
bool is_open;
bool field_toggle; // Internal odd / even toggle (used when building the mapping)
Fraction original; // The original frame rate
Fraction target; // The target frame rate
Expand Down
6 changes: 3 additions & 3 deletions src/FrameMapper.cpp
Expand Up @@ -61,9 +61,9 @@ FrameMapper::FrameMapper(ReaderBase *reader, Fraction target, PulldownType targe

// Destructor
FrameMapper::~FrameMapper() {
if (is_open)
// Auto Close if not already
Close();

// Auto Close if not already
Close();

reader = NULL;
}
Expand Down

0 comments on commit 3680144

Please sign in to comment.