Commit 9349da54 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/open.cpp: small fixes.
* modules/access/vcd/cdrom.c: win32 fix for cue file parsing.
* modules/video_filter/osd_text.c: small win32 fix.
parent 567894b0
......@@ -2,7 +2,7 @@
* cdrom.c: cdrom tools
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: cdrom.c,v 1.9 2003/05/17 20:30:31 gbazin Exp $
* $Id: cdrom.c,v 1.10 2003/05/18 12:18:46 gbazin Exp $
*
* Authors: Johan Bilien <jobi@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
......@@ -824,7 +824,8 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
*p_pos = 0;
/* Take care of path standardization */
if( *line != '/' && (p_pos = strrchr( psz_cuefile, '/' )) )
if( *line != '/' && ((p_pos = strrchr( psz_cuefile, '/' ))
|| (p_pos = strrchr( psz_cuefile, '\\' ) )) )
{
psz_vcdfile = malloc( strlen(line) +
(p_pos - psz_cuefile + 1) + 1 );
......
......@@ -2,7 +2,7 @@
* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: open.cpp,v 1.23 2003/05/17 22:48:09 gbazin Exp $
* $Id: open.cpp,v 1.24 2003/05/18 12:18:46 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -512,8 +512,8 @@ void OpenDialog::UpdateMRL( int i_access_method )
mrl = wxT("file") + demux + wxT("://") + file_combo->GetValue();
break;
case DISC_ACCESS:
mrl = ( disc_type->GetSelection() == 0 ? wxT("dvdsimple") :
disc_type->GetSelection() == 1 ? wxT("dvd") :
mrl = ( disc_type->GetSelection() == 0 ? wxT("dvd") :
disc_type->GetSelection() == 1 ? wxT("dvdsimple") :
disc_type->GetSelection() == 2 ? wxT("vcd") : wxT("cdda") )
+ demux + wxT("://")
+ disc_device->GetLineText(0)
......@@ -639,7 +639,7 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
switch( disc_type->GetSelection() )
{
case 1:
case 0:
disc_title->SetRange( 0, 255 );
disc_title->SetValue( 0 );
break;
......
......@@ -2,7 +2,7 @@
* osd_text.c : Filter to put text on the video, using freetype2
*****************************************************************************
* Copyright (C) 2002, 2003 VideoLAN
* $Id: osd_text.c,v 1.3 2003/05/11 08:42:59 sigmunau Exp $
* $Id: osd_text.c,v 1.4 2003/05/18 12:18:46 gbazin Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
......@@ -38,6 +38,10 @@
#include FT_FREETYPE_H
#include FT_GLYPH_H
#ifdef WIN32
#define FT_RENDER_MODE_NORMAL 0
#endif
/*****************************************************************************
* Local prototypes
*****************************************************************************/
......
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