qwertyone
25th March 2009, 12:02
Hello,
I try to write a cross plattfrom movie player widget using the QuicktimeSDK on the Windows side and embedded HIMovieView on the Mac side under Qt4.5.0.
Loading a movie NewMovieFromProperties() works fine on Mac and Windows,
but when I use some other code like OpenMovieFile(), I always get fnfErr (-43) only on the Mac,the code works fine on Windows.
Somehow i can's use any code that uses FSSpec as a parameter.
char pictpath[255] = "/Users/me/360.png";
c2pstr(pictpath);
FSSpec myPictSpec;
OSErr err = FSMakeFSSpec(0,0,(const unsigned char*)pictpath,&myPictSpec);
GraphicsImportComponent myImporter = NULL;
err = GetGraphicsImporterForFile(thePictSpec, &myImporter);
On Mac I always get the fnfErr...
Is Qt4.5.0 not initializing something on the Mac ?
Any idea what could be wrong ?
Any Help is appreciated.
I try to write a cross plattfrom movie player widget using the QuicktimeSDK on the Windows side and embedded HIMovieView on the Mac side under Qt4.5.0.
Loading a movie NewMovieFromProperties() works fine on Mac and Windows,
but when I use some other code like OpenMovieFile(), I always get fnfErr (-43) only on the Mac,the code works fine on Windows.
Somehow i can's use any code that uses FSSpec as a parameter.
char pictpath[255] = "/Users/me/360.png";
c2pstr(pictpath);
FSSpec myPictSpec;
OSErr err = FSMakeFSSpec(0,0,(const unsigned char*)pictpath,&myPictSpec);
GraphicsImportComponent myImporter = NULL;
err = GetGraphicsImporterForFile(thePictSpec, &myImporter);
On Mac I always get the fnfErr...
Is Qt4.5.0 not initializing something on the Mac ?
Any idea what could be wrong ?
Any Help is appreciated.