Closed GoogleCodeExporter closed 9 years ago
Hello,
Yes, python-mplayer runs MPlayer in slave mode. For all the python-mplayer
classes, all of MPlayer's stdout output is read continuously and is placed in a
queue.Queue() object (for thread-safety). Once the wrapper sees a get_property
command to MPlayer, it tries to fetch an item from the queue. In other words,
communication is still done asynchronously since there's no other way of doing
it.
To add more detail, the different classes use different ways of reading the
stdout output from MPlayer. In the base Player class, separate threads are
used. In AsyncPlayer, the asyncore framework takes care of it. In
GPlayer/GtkPlayerView, the GObject/GTK main loop processes the I/O events. In
the case of QtPlayer/QPlayerView, the Qt main loop does this.
I hope this helps.
P.S.:
You can just email me directly. :)
I will close this issue now.
Original comment by daru...@gmail.com
on 14 Aug 2011 at 12:32
Original issue reported on code.google.com by
igor.con...@gmail.com
on 3 Aug 2011 at 12:44