summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authordeva <deva>2005-06-16 21:28:57 +0000
committerdeva <deva>2005-06-16 21:28:57 +0000
commite0592745a40dae2e14e5b6d9226f41a293ababc9 (patch)
treeb3640c07fd6af71aa01bed384613ffda6c03bf41 /src/frame.h
parentc397f2dcdc399b43cf150f8000e711fc20613deb (diff)
Rewrote thread object
Fixed bug in mov_encoder (pushed read_sem too many times, whihc lead to growing server queue)
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h13
1 files changed, 6 insertions, 7 deletions
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 <functional>
+// Method for use, when comparing Frames in priority queue.
template <typename T>
struct frame_priority : std::binary_function<T, T, bool> {
bool operator() (const T& a, const T& b) const {