[vorbis-dev] Problem with 'ov_open'...

Jon Shiring slothy at slothy.com
Mon Feb 9 12:20:39 PST 2004



Most likely is that your application is using the Singlethreaded runtime 
libraries and the ogg and vorbis libs are compiled against the 
multithreaded runtime libs.  Check that and see if that fixes your crash.

Jon

Ryan Ashley wrote:

> Hey, I've coded an OGG player for Win32 (it uses AL for playback so 
> it's portable to Linux/Mac), but every time the program gets to the 
> 'ov_open()' function, the app completely freezes, and I have to use 
> the task-manager to kill it.  I am supplying it with a valid file 
> handle that was just opened (FILE*) and the vorbis file is also a 
> pointer that is not in use (set to null).  Any ideas why this is 
> happenening?  Here is my actual source.
>  
> FILE *SoundFile;
> OggVorbis_File *OVFile;
>  
> if(SoundFile != NULL)
>   CloseOGG();
>  
> if((SoundFile = fopen(Filename, "rb")) == NULL)
>   return false;
> if((ov_open(SoundFile, OVFile, NULL, 0)) < 0)
>   return false;
> I've put debug messages that my log-class logs, and it logs everything 
> just fine up to the ov_open() check, then nothing.
>  

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list