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
This commit is contained in:
parent
b0ceefb72c
commit
5c71a13784
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue