Skip to content

Commit 3680144

Browse files
committed
FrameMapper: Eliminate is_open member variable
It was being used uninitialized because it's never actually set, therefore it serves no purpose.
1 parent 9998876 commit 3680144

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/FrameMapper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ namespace openshot
138138
*/
139139
class FrameMapper : public ReaderBase {
140140
private:
141-
bool is_open;
142141
bool field_toggle; // Internal odd / even toggle (used when building the mapping)
143142
Fraction original; // The original frame rate
144143
Fraction target; // The target frame rate

src/FrameMapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ FrameMapper::FrameMapper(ReaderBase *reader, Fraction target, PulldownType targe
6161

6262
// Destructor
6363
FrameMapper::~FrameMapper() {
64-
if (is_open)
65-
// Auto Close if not already
66-
Close();
64+
65+
// Auto Close if not already
66+
Close();
6767

6868
reader = NULL;
6969
}

0 commit comments

Comments
 (0)