* vlc.c: the vlc player, WinCE version
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: vlc.c,v 1.4 2002/11/20 16:43:32 sam Exp $
+ * $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
LPTSTR lpCmdLine, int nCmdShow )
{
int i_ret;
- int i_argc = 5;
- char * ppsz_argv[] = { lpCmdLine, "-vv", "--intf", "dummy", "shovel.mpeg", /*"washington.mpeg",*/ NULL };
+ int i_argc = 4;
+ char * ppsz_argv[] = { lpCmdLine, "-vv", "--intf", "dummy", NULL, NULL };
HWND window;
MSG message;
char psz_title[100];
wchar_t pwz_title[100];
+ i_argc = 5;
+ ppsz_argv[4] = "test.wav";
+
/* Store our instance for future reference */
hInst = hInstance;
/* Register window class */
+ memset( &wc, 0, sizeof(wc) );
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = (WNDPROC) WndProc;
wc.cbClsExtra = 0;
RegisterClass(&wc);
/* Print the version information */
- sprintf( psz_title, "VideoLAN Client %s", VLC_Version() );
+ sprintf( psz_title, "VLC media player %s", VLC_Version() );
MultiByteToWideChar( CP_ACP, 0, psz_title, -1, pwz_title, 100 );
/* Create our nice window */
window = CreateWindow( L"VLC", pwz_title,
- WS_VISIBLE | WS_SIZEBOX | WS_CAPTION,
+ WS_VISIBLE /*| WS_SIZEBOX | WS_CAPTION*/,
CW_USEDEFAULT, CW_USEDEFAULT,
//CW_USEDEFAULT, CW_USEDEFAULT,
- 200,100,
+ 200,200,
NULL, NULL, hInst, NULL );
ShowWindow( window, nCmdShow );
i_ret = VLC_Play( 0 );
/* Add a non-blocking interface and keep the return value */
- i_ret = VLC_AddIntf( 0, NULL, VLC_FALSE );
+ i_ret = VLC_AddIntf( 0, NULL, VLC_FALSE, VLC_TRUE );
while( GetMessage( &message, NULL, 0, 0 ) )
{
VLC_Die( 0 );
/* Finish the threads */
- VLC_Stop( 0 );
+ VLC_CleanUp( 0 );
/* Destroy the libvlc structure */
VLC_Destroy( 0 );
{
HDC hdc;
int wmId, wmEvent;
+ int x, y;
PAINTSTRUCT ps;
switch( message )
{
+ case WM_LBUTTONDOWN:
+ x = LOWORD(lParam);
+ y = HIWORD(lParam);
+ hdc = GetDC(hWnd);
+ Rectangle(hdc, x-4, y-4, x+4, y+4);
+ ReleaseDC(hWnd, hdc);
+ break;
case WM_COMMAND:
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);