mplayer.py icon indicating copy to clipboard operation
mplayer.py copied to clipboard

Queue Bug properties not populated in some cases

Open baudm opened this issue 9 years ago • 1 comments

Original issue 9 created by baudm on 2011-12-20T13:03:26.000Z:

When using for example Celery with mplayer.py the Queue gets filled in _StdoutWrapper._process_output but for some reasons i dont fully understand the same Queue stays empty on the other side at Player _run_command.

By changing the queue import in misc.py to from multiprocess import Queue as queue and changing the instantiation of self._answers to queue() fixed this problem for me.

Sorry i cant create a diff right now i just wanted to report it. Thanks for the great work with mplayer.py :)

baudm avatar Mar 25 '15 16:03 baudm

Comment #1 originally posted by baudm on 2011-12-20T13:57:16.000Z:

Hi there,

I'm not familiar with Celery. Can you give an example of how you're using it with mplayer.py?

The Queue.Queue class is meant for data interchange between threads while multiprocessing.Queue is meant for interchange between processes. I'm guessing that's the cause of the problem.

baudm avatar Mar 25 '15 16:03 baudm