Commit d2e838ba authored by Tony Castley's avatar Tony Castley

Fixed segfault. Now fails to load due to incorrect format.

Getting there :)
parent 47e97057
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* aout.cpp: BeOS audio output * aout.cpp: BeOS audio output
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: AudioOutput.cpp,v 1.2 2002/08/17 08:46:46 tcastley Exp $ * $Id: AudioOutput.cpp,v 1.3 2002/08/19 11:51:03 tcastley Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -82,7 +82,9 @@ int E_(OpenAudio) ( vlc_object_t * p_this ) ...@@ -82,7 +82,9 @@ int E_(OpenAudio) ( vlc_object_t * p_this )
msg_Err( p_aout, "out of memory" ); msg_Err( p_aout, "out of memory" );
return( 1 ); return( 1 );
} }
p_aout->output.pf_setformat = SetFormat;
p_sys->p_format = (gs_audio_format *)malloc( sizeof( struct gs_audio_format));
SetFormat(p_aout);
/* Allocate BPushGameSound */ /* Allocate BPushGameSound */
p_sys->p_sound = new BPushGameSound( 8192, p_sys->p_sound = new BPushGameSound( 8192,
p_sys->p_format, p_sys->p_format,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment