still corrupting memory
This commit is contained in:
parent
2e3fda488e
commit
b87e459125
|
@ -2745,6 +2745,7 @@ Monitor *Monitor::Load( unsigned int p_id, bool load_zones, Purpose purpose ) {
|
||||||
int Monitor::Capture() {
|
int Monitor::Capture() {
|
||||||
static int FirstCapture = 1; // Used in de-interlacing to indicate whether this is the even or odd image
|
static int FirstCapture = 1; // Used in de-interlacing to indicate whether this is the even or odd image
|
||||||
|
|
||||||
|
GetLastEventId();
|
||||||
unsigned int index = image_count % image_buffer_count;
|
unsigned int index = image_count % image_buffer_count;
|
||||||
|
|
||||||
if ( (index == shared_data->last_read_index) && (function > MONITOR) ) {
|
if ( (index == shared_data->last_read_index) && (function > MONITOR) ) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ VideoStore::VideoStore(
|
||||||
packets_written = 0;
|
packets_written = 0;
|
||||||
frame_count = 0;
|
frame_count = 0;
|
||||||
|
|
||||||
av_register_all();
|
FFMPEGInit();
|
||||||
|
|
||||||
Info("Opening video storage stream %s format: %s", filename, format);
|
Info("Opening video storage stream %s format: %s", filename, format);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue