Client/Server multithreaded application with queues to manage medias