Commit 5383df0c authored by Rocky Bernstein's avatar Rocky Bernstein

Guard against invalid p_vcd in dbg_print.

parent c2251f25
/*****************************************************************************
* 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...)
......
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