fact that libdvdcss now needs a colon after the DVD drive letter (on Win32).
* src/misc/messages.c: on Win32 only use fflush() if in debug mode.
* src/misc/win32_specific.c: try to raise the our process priority slightly
above normal. This prevent us from suffering too much from normal activity
of the OS.
disable the GUI. You will end-up with a vlc.log file in your current directory.
If you want to play a DVD, run vlc and click on the Disc option in the
-interface. You then have to type your drive letter in the 'Device name'
-box (eg. 'D' if this is the letter for your dvdrom drive).
+interface. You then have to type your drive letter followed by a colon in
+the 'Device name' box (eg. 'D:' if this is the letter for your dvdrom drive).
Building VideoLAN Client from the source code
=============================================
* codecs.h: codec related structures needed by the demuxers and decoders
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: codecs.h,v 1.1 2002/11/03 23:00:32 gbazin Exp $
+ * $Id: codecs.h,v 1.2 2002/11/07 19:31:07 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
} WAVEFORMATEX, *PWAVEFORMATEX, *NPWAVEFORMATEX, *LPWAVEFORMATEX;
#endif /* _WAVEFORMATEX_ */
-#ifndef _BITMAPINFOHEADER_
+#if !defined(_BITMAPINFOHEADER_) && !defined(WIN32)
#define _BITMAPINFOHEADER_
typedef struct __attribute__((__packed__))
{
# define DVD_DEVICE "/dev/dvd"
# define VCD_DEVICE "/dev/cdrom"
#else
-# define DVD_DEVICE "D"
-# define VCD_DEVICE "D"
+# define DVD_DEVICE "D:"
+# define VCD_DEVICE "D:"
#endif
/*****************************************************************************
* libvlc.h: main libvlc header
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.h,v 1.20 2002/10/15 12:30:00 sam Exp $
+ * $Id: libvlc.h,v 1.21 2002/11/07 19:31:08 gbazin Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
"DVD (from 1 to n).")
#define DVD_DEV_TEXT N_("DVD device")
+#ifdef WIN32
+#define DVD_DEV_LONGTEXT N_( \
+ "This is the default DVD drive (or file) to use. Don't forget the colon " \
+ "after the drive letter (eg D:)")
+#else
#define DVD_DEV_LONGTEXT N_( \
"This is the default DVD device to use.")
+#endif
#define VCD_DEV_TEXT N_("VCD device")
#define VCD_DEV_LONGTEXT N_( \
* modules, especially intf modules. See config.h for output configuration.
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: messages.c,v 1.18 2002/10/29 13:22:48 sam Exp $
+ * $Id: messages.c,v 1.19 2002/11/07 19:31:08 gbazin Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
p_item->psz_msg );
}
-#ifdef WIN32
+#if defined(WIN32) && defined(DEBUG)
fflush( stderr );
#endif
}
* win32_specific.c: Win32 specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: win32_specific.c,v 1.16 2002/10/04 12:01:40 gbazin Exp $
+ * $Id: win32_specific.c,v 1.17 2002/11/07 19:31:08 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@netcourrier.com>
{
p_this->p_libvlc->b_fast_mutex = config_GetInt( p_this, "fast-mutex" );
p_this->p_libvlc->i_win9x_cv = config_GetInt( p_this, "win9x-cv-method" );
+
+ /* Raise default priority of the current process */
+#ifndef ABOVE_NORMAL_PRIORITY_CLASS
+# define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
+#endif
+ if( !SetPriorityClass( GetCurrentProcess(),
+ ABOVE_NORMAL_PRIORITY_CLASS ) )
+ {
+ if( !SetPriorityClass( GetCurrentProcess(),
+ HIGH_PRIORITY_CLASS ) )
+ msg_Dbg( p_this, "can't raise process priority" );
+ else
+ msg_Dbg( p_this, "raised process priority" );
+ }
}
/*****************************************************************************