From 5c71a137841e0beeaa15a7555f7e7daf758876a6 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 3 Jun 2003 21:42:14 +0000 Subject: [PATCH] Made refresh param to Stream function signed so could deal with -ve numbers. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@552 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_event.cpp | 2 +- src/zm_event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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