diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 0ad4bfa41..3aada2600 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -539,7 +539,7 @@ void Event::AddFramesInternal(int n_frames, int start_frame, Image **images, str end_time = *timestamps[n_frames-1]; } // void Event::AddFramesInternal(int n_frames, int start_frame, Image **images, struct timeval **timestamps) -void Event::AddPacket(ZMPacket *packet, int score, Image *alarm_image) { +void Event::AddPacket(ZMPacket *packet) { have_video_keyframe = have_video_keyframe || ( ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) && packet->keyframe ); if ( videoStore ) { @@ -551,7 +551,7 @@ void Event::AddPacket(ZMPacket *packet, int score, Image *alarm_image) { //FIXME if it fails, we should write a jpeg } if ( have_video_keyframe && ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) ) { - AddFrame(packet->image, *packet->timestamp, score, alarm_image); + AddFrame(packet->image, *(packet->timestamp), packet->score, packet->analysis_image); } // end if is video end_time = *packet->timestamp; return; diff --git a/src/zm_event.h b/src/zm_event.h index ce94f68d7..593e95056 100644 --- a/src/zm_event.h +++ b/src/zm_event.h @@ -124,8 +124,8 @@ class Event { const struct timeval &StartTime() const { return start_time; } const struct timeval &EndTime() const { return end_time; } - void AddPacket( ZMPacket *p, int score=0, Image *alarm_frame=nullptr ); - bool WritePacket( ZMPacket &p ); + void AddPacket(ZMPacket *p); + bool WritePacket(ZMPacket &p); bool SendFrameImage(const Image *image, bool alarm_frame=false); bool WriteFrameImage( Image *image,