]> git.sesse.net Git - vlc/blobdiff - modules/access/vcdx/vcd.h
VCDX: use after free
[vlc] / modules / access / vcdx / vcd.h
index 8f7d033faf56c3d978764e15a406e82b0384809c..3fd55629e34836334bb5cb720c9a8031792cd249 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2003, 2004 the VideoLAN team
  * $Id$
  *
- * Authors: Rocky Bernstein <rocky@panix.com> 
+ * Authors: Rocky Bernstein <rocky@panix.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *****************************************************************************/
 
 #include <libvcd/info.h>
+#include <vlc_interface.h>
 
 #define VCD_MRL_PREFIX "vcdx://"
 
 /*****************************************************************************
  * vcd_data_t: structure for communication between access and intf.
  *****************************************************************************/
-typedef struct
-{
-#if FINISHED
+typedef struct {
+#ifdef FINISHED
     vcdplay_ptr             vmg;
 #endif
     intf_thread_t *         p_intf;
 
-#if DEMUX_FINISHED
+#ifdef DEMUX_FINISHED
     int                     i_audio_nb;
     int                     i_spu_nb;
 #endif
 
     int                     i_still_time;
-    vlc_bool_t              b_end_of_cell;
+    bool              b_end_of_cell;
 
-#if FINISHED
+#ifdef FINISHED
     vcdplay_event_t         event;
-    vcdplay_ctrl_t          control;   
+    vcdplay_ctrl_t          control;
     vcdplay_highlight_t     hli;
 #endif