[MPlayer-users] Problem with slave commands since r24151

Pepe rvm3000 at ya.com
Mon Aug 27 02:00:46 CEST 2007


I'm developing smplayer (http://smplayer.sourceforge.net). Since SVN-r24151 
smplayer has stopped working properly. MPlayer ignores the slave commands.

After some investigation, it seems that the first commands are executed but 
after a while they don't work anymore. I'm not sure but maybe the problem 
occurs if several commands are sent very fast.

This problem happens with all versions of smplayer, the old ones with Qt 3 and 
the new ones with Qt 4.

I revised my code, but I think it's ok. 

I wrote a very small app which can be used to reproduce the problem: 
http://smplayer.sourceforge.net/temp/testqprocess-1.tar.gz (compilation: 
"qmake; make". Requires Qt 4). 
There's a field "Slave command" where you can enter any command for MPlayer. 
Well, typing "pause" or "volume +1" for example, and keeping pressed the 
Enter key for a second or so (to send to same command several times), triggers 
the problem. After that no other command is obeyed. 
There's also a "Play/Pause" button, which just simply sends "pause\n" to 
MPlayer, but I couldn't reproduce the problem with it, even if clicking on it 
very fast.

I hope you can fix the problem, otherwise my application will be useless.

-- 
Pepe



More information about the MPlayer-users mailing list