I am making a program that uses SDL and SMPEG to play an MPEG. I am running
into a problem where on the second or sometimes third iteration of the while
loop, I receive an error. Debug shows that the error is occuring in the
SMPEG_new line. The example is below and I suspect it is to do with the Audio
initialization. However, if I try to initialize the audio with SDL_INIT_AUDIO
and then switch the third argument of SMPEG_new to 0, the video moves very
slowly and without sound, eventually crashing with a Passed NULL mutex error.
The simple structure of the program:
mpeg = SMPEG_new(moviebuf, &info, 1); /* moviebuf is movie file */
SMPEG_setdisplay (mpeg, screen, NULL, update_frames);
ERROR FOR THIS EXAMPLE IS: Fatal signal: Segmentation Fault (SDL Parachute
Any ideas? Very appreciative for any help!