From 1d1d000499d8a0ea8eac9d5ea45f361a65ffb2ac Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 24 Oct 2001 21:50:51 +0000 Subject: fix segfault (freeing uninitialized rle data) CVS patchset: 880 CVS date: 2001/10/24 21:50:51 --- src/libspudec/xine_decoder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c index 4f5f05e22..13e1d5932 100644 --- a/src/libspudec/xine_decoder.c +++ b/src/libspudec/xine_decoder.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.24 2001/10/23 21:51:11 jcdutton Exp $ + * $Id: xine_decoder.c,v 1.25 2001/10/24 21:50:51 miguelfreitas Exp $ * * stuff needed to turn libspu into a xine decoder plugin */ @@ -201,7 +201,8 @@ static void spudec_reset (spudec_decoder_t *this) { this->spu_objects[1].object_type=1; this->spu_objects[1].pts=0; this->spu_objects[1].overlay = malloc (sizeof(vo_overlay_t)); - + memset(this->spu_objects[1].overlay,0,sizeof(vo_overlay_t)); + pthread_mutex_init (&this->spu_events_mutex,NULL); pthread_mutex_init (&this->spu_objects_mutex,NULL); pthread_mutex_init (&this->spu_showing_mutex,NULL); -- cgit v1.2.3