diff options
Diffstat (limited to 'src/encoder.cc')
-rw-r--r-- | src/encoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoder.cc b/src/encoder.cc index 1664588..ef575e7 100644 --- a/src/encoder.cc +++ b/src/encoder.cc @@ -75,6 +75,7 @@ void Encoder::encode() pthread_mutex_lock(mutex); frame = queue->pop(); + queue->plength(); pthread_mutex_unlock(mutex); if((frame && record) || @@ -96,7 +97,6 @@ void Encoder::encode() } if(frame) delete frame; } - // pthread_exit(NULL); } @@ -130,6 +130,7 @@ void Encoder::shoot() void Encoder::run() { encode(); + fprintf(stderr, "Encoder thread stopped.\n"); fflush(sdterr); } |