Re: mplayerplug-in leaving zombies

Forest Bond <[email protected]>
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>
Hi,

On Wed, Oct 03, 2007 at 08:48:52AM -0600, Kevin DeKorte wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Forest Bond wrote:
> > There is such a property:
> > 
> > --------------------------------------------------------------------------------
> > get_property filename
> > ANS_filename=test.mpg
> > --------------------------------------------------------------------------------
> > 
> > But after the file has finished playing:
> > 
> > --------------------------------------------------------------------------------
> > get_property filename
> > 
> > --------------------------------------------------------------------------------
> 
> This check is no good, since mplayer does not respond to the command. If
> mplayer gave back
> 
> ANS_filename=
> 
> Then it would be a good check, but a no response is not suitable for me.
> 
> I need something where I can determine reliably from mplayer that
> nothing is loaded. And a non-response is not it.

mplayer does send a response, it's just that the response is a blank line.  This
is not good enough because you read from the sub-process independently of your
writes.  If you were using libexpect [1] (or equivalent), things would be
different.

[1] http://www.tcl.tk/man/expect5.31/libexpect.3.html

-Forest
-- 
Forest Bond
http://www.alittletooquiet.net

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Mplayerplug-in-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHA8TJRO4fQQdv5AwRAuuEAJ9bIiIIdIywwoNpxolU845Wo8W1PQCgqRDg
4KJtyzoV8jYW8QYBz8CJmGc=
=KYgd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.