Skip to content

Commit fcf5cc6

Browse files
committed
DummyReader: Initialize is_open
1 parent 3680144 commit fcf5cc6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/DummyReader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@
3333
using namespace openshot;
3434

3535
// Blank constructor for DummyReader, with default settings.
36-
DummyReader::DummyReader() {
36+
DummyReader::DummyReader() : is_open(false) {
3737

3838
// Call actual constructor with default values
3939
DummyReader(Fraction(24,1), 1280, 768, 44100, 2, 30.0);
4040
}
4141

4242
// Constructor for DummyReader. Pass a framerate and samplerate.
43-
DummyReader::DummyReader(Fraction fps, int width, int height, int sample_rate, int channels, float duration) {
43+
DummyReader::DummyReader(Fraction fps, int width, int height,
44+
int sample_rate, int channels, float duration)
45+
: is_open(false) {
4446

4547
// Set key info settings
4648
info.has_audio = false;

0 commit comments

Comments
 (0)