Merge branch 'master' of github.com:ZoneMinder/ZoneMinder
This commit is contained in:
commit
56537893da
|
@ -252,8 +252,6 @@ void Logger::initialise(const std::string &id, const Options &options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Logger::terminate() {
|
void Logger::terminate() {
|
||||||
Debug(1, "Terminating Logger");
|
|
||||||
|
|
||||||
if ( mFileLevel > NOLOG )
|
if ( mFileLevel > NOLOG )
|
||||||
closeFile();
|
closeFile();
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -291,40 +291,42 @@ protected:
|
||||||
|
|
||||||
bool last_signal;
|
bool last_signal;
|
||||||
|
|
||||||
double fps;
|
double fps;
|
||||||
unsigned int last_camera_bytes;
|
unsigned int last_camera_bytes;
|
||||||
|
|
||||||
Image delta_image;
|
Image delta_image;
|
||||||
Image ref_image;
|
Image ref_image;
|
||||||
Image alarm_image; // Used in creating analysis images, will be initialized in Analysis
|
Image alarm_image; // Used in creating analysis images, will be initialized in Analysis
|
||||||
Image write_image; // Used when creating snapshot images
|
Image write_image; // Used when creating snapshot images
|
||||||
|
std::string diag_path_r;
|
||||||
|
std::string diag_path_d;
|
||||||
|
|
||||||
Purpose purpose; // What this monitor has been created to do
|
Purpose purpose; // What this monitor has been created to do
|
||||||
int event_count;
|
int event_count;
|
||||||
int image_count;
|
int image_count;
|
||||||
int ready_count;
|
int ready_count;
|
||||||
int first_alarm_count;
|
int first_alarm_count;
|
||||||
int last_alarm_count;
|
int last_alarm_count;
|
||||||
int buffer_count;
|
int buffer_count;
|
||||||
int prealarm_count;
|
int prealarm_count;
|
||||||
State state;
|
State state;
|
||||||
time_t start_time;
|
time_t start_time;
|
||||||
time_t last_fps_time;
|
time_t last_fps_time;
|
||||||
time_t auto_resume_time;
|
time_t auto_resume_time;
|
||||||
unsigned int last_motion_score;
|
unsigned int last_motion_score;
|
||||||
|
|
||||||
EventCloseMode event_close_mode;
|
EventCloseMode event_close_mode;
|
||||||
|
|
||||||
#if ZM_MEM_MAPPED
|
#if ZM_MEM_MAPPED
|
||||||
int map_fd;
|
int map_fd;
|
||||||
char mem_file[PATH_MAX];
|
char mem_file[PATH_MAX];
|
||||||
#else // ZM_MEM_MAPPED
|
#else // ZM_MEM_MAPPED
|
||||||
int shm_id;
|
int shm_id;
|
||||||
#endif // ZM_MEM_MAPPED
|
#endif // ZM_MEM_MAPPED
|
||||||
off_t mem_size;
|
off_t mem_size;
|
||||||
unsigned char *mem_ptr;
|
unsigned char *mem_ptr;
|
||||||
SharedData *shared_data;
|
SharedData *shared_data;
|
||||||
TriggerData *trigger_data;
|
TriggerData *trigger_data;
|
||||||
VideoStoreData *video_store_data;
|
VideoStoreData *video_store_data;
|
||||||
|
|
||||||
Snapshot *image_buffer;
|
Snapshot *image_buffer;
|
||||||
|
|
|
@ -1135,11 +1135,22 @@ int VideoStore::writeAudioFramePacket(AVPacket *ipkt) {
|
||||||
}
|
}
|
||||||
} // end if encoding or copying
|
} // end if encoding or copying
|
||||||
|
|
||||||
|
|
||||||
opkt.pos = -1;
|
opkt.pos = -1;
|
||||||
opkt.stream_index = audio_out_stream->index;
|
opkt.stream_index = audio_out_stream->index;
|
||||||
opkt.flags = ipkt->flags;
|
opkt.flags = ipkt->flags;
|
||||||
|
|
||||||
if ( opkt.dts > opkt.pts ) {
|
if ( opkt.dts < audio_out_stream->cur_dts ) {
|
||||||
|
Warning("non increasing dts, fixing");
|
||||||
|
opkt.dts = audio_out_stream->cur_dts;
|
||||||
|
if ( opkt.dts > opkt.pts ) {
|
||||||
|
Debug(1,
|
||||||
|
"opkt.dts(%" PRId64 ") must be <= opkt.pts(%" PRId64 ")."
|
||||||
|
"Decompression must happen before presentation.",
|
||||||
|
opkt.dts, opkt.pts);
|
||||||
|
opkt.pts = opkt.dts;
|
||||||
|
}
|
||||||
|
} else if ( opkt.dts > opkt.pts ) {
|
||||||
Debug(1,
|
Debug(1,
|
||||||
"opkt.dts(%" PRId64 ") must be <= opkt.pts(%" PRId64 ")."
|
"opkt.dts(%" PRId64 ") must be <= opkt.pts(%" PRId64 ")."
|
||||||
"Decompression must happen before presentation.",
|
"Decompression must happen before presentation.",
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.ptzControls .controlsPanel .pantiltPanel .pantiltControls .centerBtn {
|
.ptzControls .controlsPanel .pantiltPanel .pantiltControls .centerBtn {
|
||||||
background: url("../skins/classic/graphics/graphics/center.png") no-repeat 0 0;
|
background: url("../skins/classic/graphics/center.png") no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ptzControls .controlsPanel .pantiltPanel .pantiltControls .rightBtn {
|
.ptzControls .controlsPanel .pantiltPanel .pantiltControls .rightBtn {
|
||||||
|
|
Loading…
Reference in New Issue