Commit d472b3e2 authored by Gildas Bazin's avatar Gildas Bazin

* INSTALL.win32, include/vlc_config.h, src/libvlc.h: changes to reflect the
   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.
parent 99f3e549
......@@ -14,8 +14,8 @@ To store a debug log of the current vlc session, you can use
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
=============================================
......
......@@ -2,7 +2,7 @@
* 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>
*
......@@ -39,7 +39,7 @@ typedef struct __attribute__((__packed__)) _WAVEFORMATEX {
} WAVEFORMATEX, *PWAVEFORMATEX, *NPWAVEFORMATEX, *LPWAVEFORMATEX;
#endif /* _WAVEFORMATEX_ */
#ifndef _BITMAPINFOHEADER_
#if !defined(_BITMAPINFOHEADER_) && !defined(WIN32)
#define _BITMAPINFOHEADER_
typedef struct __attribute__((__packed__))
{
......
......@@ -112,8 +112,8 @@
# 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
/*****************************************************************************
......
......@@ -2,7 +2,7 @@
* 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>
......@@ -215,8 +215,14 @@
"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_( \
......
......@@ -4,7 +4,7 @@
* 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>
......@@ -461,7 +461,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
p_item->psz_msg );
}
#ifdef WIN32
#if defined(WIN32) && defined(DEBUG)
fflush( stderr );
#endif
}
......
......@@ -2,7 +2,7 @@
* 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>
......@@ -57,6 +57,20 @@ void system_Configure( vlc_t *p_this )
{
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" );
}
}
/*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment