From 1daacd9d5b53cac2671d2bd9c93a3daa629254ea Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 25 Nov 2003 01:14:04 +0000 Subject: fix segfault. osd renderer must be closed after decoder plugins CVS patchset: 5779 CVS date: 2003/11/25 01:14:04 --- src/xine-engine/xine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 08bd03d82..2c7b93809 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -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: xine.c,v 1.269 2003/11/22 21:19:09 f1rmb Exp $ + * $Id: xine.c,v 1.270 2003/11/25 01:14:04 miguelfreitas Exp $ */ /* @@ -1113,11 +1113,11 @@ void xine_dispose (xine_stream_t *stream) { _x_audio_decoder_shutdown (stream); xprintf (stream->xine, XINE_VERBOSITY_DEBUG, "shutdown video\n"); + _x_video_decoder_shutdown (stream); + if (stream->osd_renderer) stream->osd_renderer->close( stream->osd_renderer ); - _x_video_decoder_shutdown (stream); - pthread_mutex_destroy (&stream->info_mutex); pthread_mutex_destroy (&stream->meta_mutex); pthread_mutex_destroy (&stream->frontend_lock); -- cgit v1.2.3