diff options
author | deva <deva> | 2005-04-28 18:11:58 +0000 |
---|---|---|
committer | deva <deva> | 2005-04-28 18:11:58 +0000 |
commit | a420994fe53199747e6d0ba0af473ecc4f940258 (patch) | |
tree | e00c5233f66e6dfc2964e203bc6529fea9374626 /src/decoder.cc | |
parent | 5c756301afdcad05d3b880544b3ea88e50986e21 (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.cc | 2 |
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); |