[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compilation sources vlc : vlc-0.8.4-svn20050920



herve thibaud wrote:

bonjour

Erreur compilation du fichier modules gui/wxwidgets/open.cpp
fonctions ProbeDVD, ProbeCDDA et ProbeVCD
sur la même écriture

open.cpp: In function ‘char* ProbeDVD(const wxChar*)’:
open.cpp:1336: error: invalid cast from type ‘const wxCharBuffer’ to type ‘char*’
open.cpp: In function ‘char* ProbeCDDA(const wxChar*)’:
open.cpp:1406: error: invalid cast from type ‘const wxCharBuffer’ to type ‘char*’
open.cpp: In function ‘char* ProbeVCD(const wxChar*)’:
open.cpp:1419: error: invalid cast from type ‘const wxCharBuffer’ to type ‘char*’
m


erreur sur la ligne :
char *psz_device = (char *) tmp_buf;

static char * ProbeVCD(const wxChar *device)
{
char *ppsz_device[2];
const wxWX2MBbuf tmp_buf = wxConvCurrent->cWX2MB(device);
char *psz_device = (char *) tmp_buf;
ppsz_device[0] = (device && *device) ? psz_device : NULL;
ppsz_device[1] = NULL;
return ProbeDevice(ppsz_device,
(CDIO_FS_ANAL_SVCD|CDIO_FS_ANAL_CVD|CDIO_FS_ANAL_VIDEOCD
|CDIO_FS_UNKNOWN), true);
}


je cherche une solution pour corriger l'erreur et enfin pouvoir obtenir une version 0.8.4 de vlc pour pouvoir (enfin) faire fonctionner "freeplayer"


En entrant :
char *psz_device = (char *) tmp_buf; dans google j'ai semble-t-il trouvé la correction

char *psz_device = const_cast<char *>(tmp_buf.data());

(c'est comme à la samaritaine, on y trouve tout)




Reply to: