Commit d5fe9f34 authored by Laurent Aimar's avatar Laurent Aimar

* gtk: fixed a segfault with deinterlace.

parent 6996bfd0
......@@ -2,7 +2,7 @@
* menu.c : functions to handle menu items.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: menu.c,v 1.4 2003/01/20 20:07:07 fenrir Exp $
* $Id: menu.c,v 1.5 2003/01/22 00:32:32 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -372,6 +372,8 @@ static void GtkDeinterlaceUpdate( intf_thread_t *p_intf, char *psz_mode )
free( psz_filter );
/* now restart all video stream */
if( p_intf->p_sys->p_input )
{
vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
#define ES p_intf->p_sys->p_input->stream.pp_es[i]
/* create a set of language buttons and append them to the container */
......@@ -386,6 +388,7 @@ static void GtkDeinterlaceUpdate( intf_thread_t *p_intf, char *psz_mode )
#undef ES
}
vlc_mutex_unlock( &p_intf->p_sys->p_input->stream.stream_lock );
}
}
static void GtkMenubarDeinterlaceToggle( GtkCheckMenuItem * menuitem, gpointer user_data )
......
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