Commit 07314b11 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix a crash that happens if you play with video filters.

Crash happens if you do:
 - Play item
 - Activate vfilter
 - Stop item
 - Deactivate vfilter... BooM.
(cherry picked from commit c876401791144309d2427214d818a34198238358)
parent 6923372f
......@@ -343,6 +343,10 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
if( THEMIM->getInput() )
p_vout = ( vout_thread_t * )vlc_object_find( THEMIM->getInput(),
VLC_OBJECT_VOUT, FIND_CHILD );
/* If you have stopped the video, p_vout is still at its old value */
else
p_vout = NULL;
if( p_vout )
{
if( !strcmp( psz_filter_type, "sub-filter" ) )
......
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