]> git.sesse.net Git - vlc/commitdiff
Guard against invalid p_vcd in dbg_print.
authorRocky Bernstein <rocky@videolan.org>
Thu, 4 Dec 2003 05:14:39 +0000 (05:14 +0000)
committerRocky Bernstein <rocky@videolan.org>
Thu, 4 Dec 2003 05:14:39 +0000 (05:14 +0000)
modules/access/vcdx/vcdplayer.h

index 2e762612673ca1c18b1173281846fb84453441ae..662cf91a11d77fea46b765bf794a59a7ff8cab3f 100644 (file)
@@ -1,6 +1,6 @@
 /*****************************************************************************
  * Copyright (C) 2003 Rocky Bernstein (for VideoLAN)
- * $Id: vcdplayer.h,v 1.2 2003/11/09 00:52:32 rocky Exp $
+ * $Id: vcdplayer.h,v 1.3 2003/12/04 05:14:39 rocky Exp $
  *
  * Authors: Rocky Bernstein <rocky@panix.com> 
  *
@@ -42,7 +42,7 @@
 #define INPUT_DEBUG 1
 #if INPUT_DEBUG
 #define dbg_print(mask, s, args...) \
-   if (p_vcd->i_debug & mask) \
+   if (p_vcd && p_vcd->i_debug & mask) \
      msg_Dbg(p_input, "%s: "s, __func__ , ##args)
 #else
 #define dbg_print(mask, s, args...)