[MPlayer-cygwin] usage of -wid on windows
Sascha Sommer
saschasommer at freenet.de
Thu Apr 28 22:29:26 CEST 2005
On Thursday 28 April 2005 07:43, Joey Parrish wrote:
> On Thu, Apr 28, 2005 at 07:07:26AM +0200, Sascha Sommer wrote:
> > > CommandLine: '-v' '-wid' '91096333'
> > > 'D:\home\nicholas\mpeg\VTS_02_1.mpg'
> >
> > As you can see the window handle gets detected as extra argument.
> > Try
> > sprintf(buf,"-wid 0x%x",wid);
>
> This is incorrect. Try running mplayer -v -wid anything from your
> command line, you'll see that it IS and SHOULD BE another arg.
>
Yes, sorry.
Just checked some old test app I made:
STARTUPINFO StartupInfo;
PROCESS_INFORMATION ProcessInformation;
ZeroMemory( &StartupInfo, sizeof(StartupInfo) );
StartupInfo.cb = sizeof(StartupInfo);
ZeroMemory( &ProcessInformation, sizeof(ProcessInformation) );
snprintf(commandline,400,"mplayer.exe d:\\media
\\samples\\divx.avi -wid 0x%x",hWnd);
CreateProcess(NULL,commandline,
NULL,NULL,FALSE,0,0,NULL,&StartupInfo,&ProcessInformation);
At least that worked a while back.
Sascha
More information about the MPlayer-cygwin
mailing list