From 3b1dc58073ea3ededb67ca672dedf62b2471590f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sun, 7 May 2006 09:31:57 +0000 Subject: Setup FS segment to make win32 gods happy with the smiley red deamon. (fixed multithread audio and video playback on FreeBSD with different LDTs) One coverity fix. CVS patchset: 7988 CVS date: 2006/05/07 09:31:57 --- src/libw32dll/qt_decoder.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/libw32dll/qt_decoder.c') diff --git a/src/libw32dll/qt_decoder.c b/src/libw32dll/qt_decoder.c index 4a0439d1b..0f8dc8002 100644 --- a/src/libw32dll/qt_decoder.c +++ b/src/libw32dll/qt_decoder.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2004 the xine project + * Copyright (C) 2000-2006 the xine project * * This file is part of xine, a free video player. * @@ -17,7 +17,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: qt_decoder.c,v 1.41 2006/05/03 19:46:08 dsalt Exp $ + * $Id: qt_decoder.c,v 1.42 2006/05/07 09:31:57 valtri Exp $ * * quicktime video/audio decoder plugin, using win32 dlls * most of this code comes directly from MPlayer @@ -458,7 +458,7 @@ static void qta_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { long out_frames, out_bytes; int error, frames_left, bytes_sent; - Check_FS_Segment(); + Check_FS_Segment(this->ldt_fs); pthread_mutex_lock(&win32_codec_mutex); error = this->SoundConverterConvertBuffer (this->myConverter, @@ -900,6 +900,7 @@ static void qtv_init_driver (qtv_decoder_t *this, buf_element_t *buf) { lprintf ("video: framedescHandle = %x\n", this->framedescHandle); memcpy (*this->framedescHandle, id, id->idSize); + free(id); /* * alloc video plane @@ -988,7 +989,7 @@ static void qtv_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { ComponentResult cres; vo_frame_t *img; - Check_FS_Segment(); + Check_FS_Segment(this->ldt_fs); pthread_mutex_lock(&win32_codec_mutex); -- cgit v1.2.3