From e0592745a40dae2e14e5b6d9226f41a293ababc9 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 16 Jun 2005 21:28:57 +0000 Subject: Rewrote thread object Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to growing server queue) --- src/frame.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/frame.h') diff --git a/src/frame.h b/src/frame.h index 8734924..3300fff 100644 --- a/src/frame.h +++ b/src/frame.h @@ -31,6 +31,11 @@ /* * $Log$ + * Revision 1.8 2005/06/16 21:28:57 deva + * Rewrote thread object + * Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to + * growing server queue) + * * Revision 1.7 2005/05/25 13:11:42 deva * * Made unfreeze close connection, when no recording is done. @@ -63,13 +68,6 @@ public: Frame(unsigned char *d, int sz); ~Frame(); - /* - // Smaller frame number is higher priority - bool operator<(const Frame& f) const { - return number > f.number; - } - */ - unsigned char *data; int size; @@ -82,6 +80,7 @@ public: #include +// Method for use, when comparing Frames in priority queue. template struct frame_priority : std::binary_function { bool operator() (const T& a, const T& b) const { -- cgit v1.2.3