summaryrefslogtreecommitdiff
path: root/src/decoder.cc
diff options
context:
space:
mode:
authordeva <deva>2005-04-28 18:11:58 +0000
committerdeva <deva>2005-04-28 18:11:58 +0000
commita420994fe53199747e6d0ba0af473ecc4f940258 (patch)
treee00c5233f66e6dfc2964e203bc6529fea9374626 /src/decoder.cc
parent5c756301afdcad05d3b880544b3ea88e50986e21 (diff)
Moved mutex into queue (made it thread safe), to avoid mutex locking in player, encoder and decoder.
Diffstat (limited to 'src/decoder.cc')
-rw-r--r--src/decoder.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/decoder.cc b/src/decoder.cc
index 3792daf..35ba5ff 100644
--- a/src/decoder.cc
+++ b/src/decoder.cc
@@ -73,10 +73,8 @@ void Decoder::decode()
Frame *pframe = new Frame(ptr, DVPACKAGE_SIZE);
free(ptr);
- pthread_mutex_lock(mutex);
encode_queue->push(eframe);
player_queue->push(pframe);
- pthread_mutex_unlock(mutex);
sem_post(encode_sem);