[MPlayer-dev-eng] Re: Slave Mode
Alban Bedel
albeu at free.fr
Fri Oct 17 03:17:57 CEST 2003
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.
More information about the MPlayer-dev-eng
mailing list