]> git.sesse.net Git - vlc/blobdiff - modules/access_filter/record.c
Don't crash in record filter (Closes:#542)
[vlc] / modules / access_filter / record.c
index 8bd1bb345d0d3b53874550c03a9ccd4a7052fbe2..47989bb7fa14d21d684da5c1efefef9d684bd8f7 100644 (file)
@@ -2,7 +2,7 @@
  * record.c
  *****************************************************************************
  * Copyright (C) 2005 the VideoLAN team
- * $Id: demux.c 7546 2004-04-29 13:53:29Z gbazin $
+ * $Id$
  *
  * Author: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 /*****************************************************************************
@@ -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 )
     {