Don't crash in record filter (Closes:#542)
authorClément Stenac <zorglub@videolan.org>
Sat, 11 Feb 2006 14:26:53 +0000 (14:26 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 11 Feb 2006 14:26:53 +0000 (14:26 +0000)
modules/access_filter/record.c

index 5bbef10..47989bb 100644 (file)
@@ -304,6 +304,7 @@ static void Notify( access_t *p_access, vlc_bool_t b_dump )
     vout_thread_t *p_vout;
 
     p_vout = vlc_object_find( p_access, VLC_OBJECT_VOUT, FIND_ANYWHERE );
+    if( !p_vout ) return;
 
     if( p_vout != p_sys->p_vout )
     {