From a420994fe53199747e6d0ba0af473ecc4f940258 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 28 Apr 2005 18:11:58 +0000 Subject: Moved mutex into queue (made it thread safe), to avoid mutex locking in player, encoder and decoder. --- src/decoder.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/decoder.cc') 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); -- cgit v1.2.3