Fifo+EventStream: Remove unused private fields

This commit is contained in:
Peter Keresztes Schmidt 2021-04-11 14:26:37 +02:00
parent 0203e744a5
commit 2d062c1f99
2 changed files with 2 additions and 13 deletions

View File

@ -102,10 +102,7 @@ class EventStream : public StreamBase {
send_frame(false),
event_data(nullptr),
storage(nullptr),
ffmpeg_input(nullptr),
// Used when loading frames from an mp4
input_codec_context(nullptr),
input_codec(nullptr)
ffmpeg_input(nullptr)
{}
~EventStream() {
if ( event_data ) {
@ -135,8 +132,6 @@ class EventStream : public StreamBase {
bool send_buffer(uint8_t * buffer, int size);
Storage *storage;
FFmpeg_Input *ffmpeg_input;
AVCodecContext *input_codec_context;
AVCodec *input_codec;
};
#endif // ZM_EVENTSTREAM_H

View File

@ -27,8 +27,6 @@ class Monitor;
class Fifo {
private:
std::string path;
int total_read;
int bytes_read;
bool on_blocking_abort;
FILE *outfile;
int raw_fd;
@ -40,17 +38,13 @@ class Fifo {
bool delete_fake_fifo = true
);
Fifo() :
total_read(0),
bytes_read(0),
Fifo() :
on_blocking_abort(true),
outfile(nullptr),
raw_fd(-1)
{}
Fifo(const char *p_path, bool p_on_blocking_abort) :
path(p_path),
total_read(0),
bytes_read(0),
on_blocking_abort(p_on_blocking_abort),
outfile(nullptr),
raw_fd(-1)