Well. The only way how to make mplayer visible is read all data from output

repeat
  i := Output.Read(buf[0],100);
until i<0;

but since my program is console application, it stay blocked on the
last read from output and do not continue to application main loop
None of these are problems on linux, it appears only on windows. Any
ideas?


2008/11/10 Vincent Snijders <[EMAIL PROTECTED]>:
> Dusan Halicky schreef:
>>>>
>>>> is there an mplayer.exe in a directory on the path (or windows
>>>> directory)?
>>
>> yes. (when I remove poUsePipes the video plays normally)
>>
>>>> Maybe you need to add poNoConsole?
>>
>> I still can't see a video (nor audio) with this option, however it
>> helps a little (application dont freeze after end with this option)
>>
>> Any other hints? Thanks.
>
> Make sure that mplayer isn't waiting for you read the output pipe.
>
> Vincent
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to