Commit 1aa0aa39 authored by Stéphane Borel's avatar Stéphane Borel

*Check if p_vpar->p_vout is available before detaching it.

parent e9de293d
......@@ -2,7 +2,7 @@
* video_parser.c : video parser thread
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video_parser.c,v 1.23 2002/06/02 09:03:54 sam Exp $
* $Id: video_parser.c,v 1.24 2002/06/05 18:01:31 stef Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
......@@ -310,6 +310,8 @@ static void EndThread( vpar_thread_t *p_vpar )
times( &cpu_usage );
#endif
if( p_vpar->p_vout != NULL )
{
/* Release used video buffers. */
if( p_vpar->sequence.p_forward != NULL )
{
......@@ -329,6 +331,7 @@ static void EndThread( vpar_thread_t *p_vpar )
/* We are about to die. Reattach video output to p_vlc. */
vlc_object_detach( p_vpar->p_vout, p_vpar->p_fifo );
vlc_object_attach( p_vpar->p_vout, p_vpar->p_fifo->p_vlc );
}
msg_Dbg( p_vpar->p_fifo, "%d loops among %d sequence(s)",
p_vpar->c_loops, p_vpar->c_sequences );
......
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