[MPlayer-dev-eng] Re: Slave Mode
Ben Nemec
cybertron at flashmail.com
Sun Oct 19 04:01:08 CEST 2003
Thanks, that helped a lot. Unfortunately, after I got that working I
realized that I need two-way communication with mplayer. Is there any way
to do that with popen (I don't think so, but just in case), or what is the
best way to do it. I've seen something about a c++ class called pipestream,
but I can't find it anywhere on my computer or for download. I've also
tried using pipe() and fork(), but I haven't been able to get it to work
even one way, and I'm not positive it can even be used for two-way
communication. Thanks for your patience with me on this.
-Ben
----- Original Message -----
From: "Alban Bedel" <albeu at free.fr>
To: <mplayer-dev-eng at mplayerhq.hu>
Sent: Thursday, October 16, 2003 8:17 PM
Subject: [MPlayer-dev-eng] Re: Slave Mode
> Hi Ben Nemec,
>
> on Thu, 16 Oct 2003 18:45:51 -0500 you wrote:
>
> > Hi,
> > I am having trouble using slave mode in my C++ project. I've managed to
> > get popen to pipe data to mplayer, but it doesn't do anything with it
> > until I close the pipe, which freezes the program and doesn't allow me
> > to do anything after that. The code below is how I'm trying to do it,
> > and if anyone could help me out it would be appreciated. I'm sure
> > someone is thinking RTFM, but I can't find anything about how to use
> > slave mode anywhere, except the different commands that are available.
> > If you could point me in the direction of something better, that would
> > also be very helpful and would keep me out of everyone's hair more:-)
> > Thanks.
> >
> > FILE *pipe_fp;
> You need to flush the FILE stuff with fflush before they really write
> the stuff. See man fflush.
> Albeu
>
> --
>
> Everything is controlled by a small evil group
> to which, unfortunately, no one we know belongs.
>
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
More information about the MPlayer-dev-eng
mailing list