Skip to content

Commit

Permalink
DummyReader: Initialize is_open
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Mar 22, 2020
1 parent 3680144 commit fcf5cc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/DummyReader.cpp
Expand Up @@ -33,14 +33,16 @@
using namespace openshot;

// Blank constructor for DummyReader, with default settings.
DummyReader::DummyReader() {
DummyReader::DummyReader() : is_open(false) {

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

// Constructor for DummyReader. Pass a framerate and samplerate.
DummyReader::DummyReader(Fraction fps, int width, int height, int sample_rate, int channels, float duration) {
DummyReader::DummyReader(Fraction fps, int width, int height,
int sample_rate, int channels, float duration)
: is_open(false) {

// Set key info settings
info.has_audio = false;
Expand Down

0 comments on commit fcf5cc6

Please sign in to comment.