Commit d550a0f8 authored by Stéphane Borel's avatar Stéphane Borel

*Initialize p_spudec->p_vout to NULL to prevent segfault if InitThread does

not complete.
parent 2bb2d008
......@@ -2,7 +2,7 @@
* spu_decoder.c : spu decoder thread
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: spu_decoder.c,v 1.22 2002/05/19 01:07:13 stef Exp $
* $Id: spu_decoder.c,v 1.23 2002/05/19 15:50:02 stef Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Rudolf Cornelissen <rag.cornelissen@inter.nl.net>
......@@ -122,6 +122,8 @@ static int decoder_Run( decoder_config_t * p_config )
/*
* Initialize the thread properties
*/
p_spudec->p_vout = NULL;
p_spudec->p_config = p_config;
p_spudec->p_fifo = p_config->p_decoder_fifo;
......
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