diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-10-24 21:50:51 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-10-24 21:50:51 +0000 |
commit | 1d1d000499d8a0ea8eac9d5ea45f361a65ffb2ac (patch) | |
tree | f8835d302504bee2171b913537beb8796f047889 | |
parent | d5358c7db631496f3c095304e01030701962e641 (diff) | |
download | xine-lib-1d1d000499d8a0ea8eac9d5ea45f361a65ffb2ac.tar.gz xine-lib-1d1d000499d8a0ea8eac9d5ea45f361a65ffb2ac.tar.bz2 |
fix segfault
(freeing uninitialized rle data)
CVS patchset: 880
CVS date: 2001/10/24 21:50:51
-rw-r--r-- | src/libspudec/xine_decoder.c | 5 |
1 files 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); |