Fifo+EventStream: Remove unused private fields
This commit is contained in:
parent
0203e744a5
commit
2d062c1f99
|
@ -102,10 +102,7 @@ class EventStream : public StreamBase {
|
||||||
send_frame(false),
|
send_frame(false),
|
||||||
event_data(nullptr),
|
event_data(nullptr),
|
||||||
storage(nullptr),
|
storage(nullptr),
|
||||||
ffmpeg_input(nullptr),
|
ffmpeg_input(nullptr)
|
||||||
// Used when loading frames from an mp4
|
|
||||||
input_codec_context(nullptr),
|
|
||||||
input_codec(nullptr)
|
|
||||||
{}
|
{}
|
||||||
~EventStream() {
|
~EventStream() {
|
||||||
if ( event_data ) {
|
if ( event_data ) {
|
||||||
|
@ -135,8 +132,6 @@ class EventStream : public StreamBase {
|
||||||
bool send_buffer(uint8_t * buffer, int size);
|
bool send_buffer(uint8_t * buffer, int size);
|
||||||
Storage *storage;
|
Storage *storage;
|
||||||
FFmpeg_Input *ffmpeg_input;
|
FFmpeg_Input *ffmpeg_input;
|
||||||
AVCodecContext *input_codec_context;
|
|
||||||
AVCodec *input_codec;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ZM_EVENTSTREAM_H
|
#endif // ZM_EVENTSTREAM_H
|
||||||
|
|
|
@ -27,8 +27,6 @@ class Monitor;
|
||||||
class Fifo {
|
class Fifo {
|
||||||
private:
|
private:
|
||||||
std::string path;
|
std::string path;
|
||||||
int total_read;
|
|
||||||
int bytes_read;
|
|
||||||
bool on_blocking_abort;
|
bool on_blocking_abort;
|
||||||
FILE *outfile;
|
FILE *outfile;
|
||||||
int raw_fd;
|
int raw_fd;
|
||||||
|
@ -40,17 +38,13 @@ class Fifo {
|
||||||
bool delete_fake_fifo = true
|
bool delete_fake_fifo = true
|
||||||
);
|
);
|
||||||
|
|
||||||
Fifo() :
|
Fifo() :
|
||||||
total_read(0),
|
|
||||||
bytes_read(0),
|
|
||||||
on_blocking_abort(true),
|
on_blocking_abort(true),
|
||||||
outfile(nullptr),
|
outfile(nullptr),
|
||||||
raw_fd(-1)
|
raw_fd(-1)
|
||||||
{}
|
{}
|
||||||
Fifo(const char *p_path, bool p_on_blocking_abort) :
|
Fifo(const char *p_path, bool p_on_blocking_abort) :
|
||||||
path(p_path),
|
path(p_path),
|
||||||
total_read(0),
|
|
||||||
bytes_read(0),
|
|
||||||
on_blocking_abort(p_on_blocking_abort),
|
on_blocking_abort(p_on_blocking_abort),
|
||||||
outfile(nullptr),
|
outfile(nullptr),
|
||||||
raw_fd(-1)
|
raw_fd(-1)
|
||||||
|
|
Loading…
Reference in New Issue