LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-25-2003, 08:55 AM   #1
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
SDL_mixer and OGG/vorbis


I am using the latest versions of both SDL_mixer and libvorbis. Every time I try to load an ogg file as music in SDL_mixer, it crashes with a SIGSEGV in the libvorbis function log(). A stack backtrace shows it happens whenever libvorbis is trying to initialize the decoder. I compared the SDL_mixer code to XMMS, and there is no significant difference, yet XMMS doesn't crash. I can use any other kind of music, and SDL_mixer works just fine.

Is this a problem in SDL_mixer, libvorbis, or my program?
 
Old 04-27-2003, 06:37 PM   #2
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Original Poster
Rep: Reputation: 30
Found it!

I feel like such an idiot...

I had a non-static variable called "log" that it was trying to use as a function, which will almost always cause a SIGSEGV. I made it static, and it works fine now.
 
Old 04-27-2003, 06:56 PM   #3
onurb
Member
 
Registered: Dec 2002
Posts: 263

Rep: Reputation: 30
It's often enough to ask the question to come up with the answer yourself ! Tell me about it, I do know from experience.

Bruno
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install Ogg Vorbis Ian D Linux - General 1 08-30-2005 04:03 PM
Need an Ogg Vorbis encoder mark.johnson Linux - Software 4 03-07-2005 03:28 PM
SDL_mixer doesn't detect Ogg Vorbis libs Tim2000 Linux - Software 2 09-18-2004 10:29 PM
Ogg Vorbis anonE9 General 5 03-16-2003 09:23 AM
Ogg Vorbis figadiablo Slackware 4 10-15-2002 11:14 AM


All times are GMT -5. The time now is 03:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration