Changeset d472b3e244fb23cef9077a6baaf48f42c58516e0

Show
Ignore:
Timestamp:
07/11/02 20:31:08 (6 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1036697468 +0000
git-parent:

[99f3e5493956c0cc4df7416df2da23cc7d4fd55d]

git-author:
Gildas Bazin <gbazin@videolan.org> 1036697468 +0000
Message:

* 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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • INSTALL.win32

    rc93f613 rd472b3e  
    1515 
    1616If you want to play a DVD, run vlc and click on the Disc option in the 
    17 interface. You then have to type your drive letter in the 'Device name' 
    18 box (eg. 'D' if this is the letter for your dvdrom drive). 
     17interface. You then have to type your drive letter followed by a colon in 
     18the 'Device name' box (eg. 'D:' if this is the letter for your dvdrom drive). 
    1919 
    2020Building VideoLAN Client from the source code 
  • include/codecs.h

    rc0a5c21 rd472b3e  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: codecs.h,v 1.1 2002/11/03 23:00:32 gbazin Exp $ 
     5 * $Id: codecs.h,v 1.2 2002/11/07 19:31:07 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    4040#endif /* _WAVEFORMATEX_ */ 
    4141 
    42 #ifndef _BITMAPINFOHEADER_ 
     42#if !defined(_BITMAPINFOHEADER_) && !defined(WIN32) 
    4343#define _BITMAPINFOHEADER_ 
    4444typedef struct __attribute__((__packed__)) 
  • include/vlc_config.h

    r2799d36 rd472b3e  
    113113#   define VCD_DEVICE "/dev/cdrom" 
    114114#else 
    115 #   define DVD_DEVICE "D
    116 #   define VCD_DEVICE "D
     115#   define DVD_DEVICE "D:
     116#   define VCD_DEVICE "D:
    117117#endif 
    118118 
  • src/libvlc.h

    r954bdeb rd472b3e  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2002 VideoLAN 
    5  * $Id: libvlc.h,v 1.20 2002/10/15 12:30:00 sam Exp $ 
     5 * $Id: libvlc.h,v 1.21 2002/11/07 19:31:08 gbazin Exp $ 
    66 * 
    77 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    216216 
    217217#define DVD_DEV_TEXT N_("DVD device") 
     218#ifdef WIN32 
     219#define DVD_DEV_LONGTEXT N_( \ 
     220    "This is the default DVD drive (or file) to use. Don't forget the colon " \ 
     221    "after the drive letter (eg D:)") 
     222#else 
    218223#define DVD_DEV_LONGTEXT N_( \ 
    219224    "This is the default DVD device to use.") 
     225#endif 
    220226 
    221227#define VCD_DEV_TEXT N_("VCD device") 
  • src/misc/messages.c

    r319e629 rd472b3e  
    55 ***************************************************************************** 
    66 * Copyright (C) 1998-2002 VideoLAN 
    7  * $Id: messages.c,v 1.18 2002/10/29 13:22:48 sam Exp $ 
     7 * $Id: messages.c,v 1.19 2002/11/07 19:31:08 gbazin Exp $ 
    88 * 
    99 * Authors: Vincent Seguin <seguin@via.ecp.fr> 
     
    462462    } 
    463463 
    464 #ifdef WIN32 
     464#if defined(WIN32) && defined(DEBUG) 
    465465    fflush( stderr ); 
    466466#endif 
  • src/misc/win32_specific.c

    r80b1569 rd472b3e  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: win32_specific.c,v 1.16 2002/10/04 12:01:40 gbazin Exp $ 
     5 * $Id: win32_specific.c,v 1.17 2002/11/07 19:31:08 gbazin Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    5858    p_this->p_libvlc->b_fast_mutex = config_GetInt( p_this, "fast-mutex" ); 
    5959    p_this->p_libvlc->i_win9x_cv = config_GetInt( p_this, "win9x-cv-method" ); 
     60 
     61    /* Raise default priority of the current process */ 
     62#ifndef ABOVE_NORMAL_PRIORITY_CLASS 
     63#   define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000 
     64#endif 
     65    if( !SetPriorityClass( GetCurrentProcess(), 
     66               ABOVE_NORMAL_PRIORITY_CLASS ) ) 
     67    { 
     68        if( !SetPriorityClass( GetCurrentProcess(), 
     69                   HIGH_PRIORITY_CLASS ) ) 
     70        msg_Dbg( p_this, "can't raise process priority" ); 
     71    else 
     72        msg_Dbg( p_this, "raised process priority" ); 
     73    } 
    6074} 
    6175