diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 802f392a7..77fe72b2c 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -264,7 +264,7 @@ void Event::AddFrame( struct timeval timestamp, const Image *image, const Image } } -void Event::StreamEvent( const char *path, int event_id, unsigned long refresh, FILE *fd ) +void Event::StreamEvent( const char *path, int event_id, long refresh, FILE *fd ) { static char sql[256]; sprintf( sql, "select Id, EventId, ImagePath, Delta from Frames where EventId = %d order by Id", event_id ); diff --git a/src/zm_event.h b/src/zm_event.h index e0f3278a9..1722404ad 100644 --- a/src/zm_event.h +++ b/src/zm_event.h @@ -79,7 +79,7 @@ public: void AddFrames( int n_frames, struct timeval **timestamps, const Image **images ); void AddFrame( struct timeval timestamp, const Image *image, const Image *alarm_frame=NULL, unsigned int score=0 ); - static void StreamEvent( const char *path, int event_id, unsigned long refresh=-1, FILE *fd=stdout ); + static void StreamEvent( const char *path, int event_id, long refresh=0, FILE *fd=stdout ); }; #endif // ZM_EVENT_H