[vlc-devel] commit: vcdx: use ifdef instead of if. ( Rémi Duraffort )
git version control
git at videolan.org
Thu Mar 12 13:36:04 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Mar 11 19:01:51 2009 +0100| [3180a62071dcd2839c62acaf4f008a9c352e3700] | committer: Rémi Duraffort
vcdx: use ifdef instead of if.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3180a62071dcd2839c62acaf4f008a9c352e3700
---
modules/access/vcdx/access.c | 8 ++++----
modules/access/vcdx/intf.h | 2 +-
modules/access/vcdx/vcd.h | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/access/vcdx/access.c b/modules/access/vcdx/access.c
index 017d7c9..1274c72 100644
--- a/modules/access/vcdx/access.c
+++ b/modules/access/vcdx/access.c
@@ -512,7 +512,7 @@ VCDLIDs( access_t * p_access )
vcdinfo_visit_lot (p_vcdplayer->vcd, false);
-#if FIXED
+#ifdef FIXED
/*
We need to change libvcdinfo to be more robust when there are
problems reading the extended PSD. Given that area-highlighting and
@@ -544,7 +544,7 @@ VCDLIDs( access_t * p_access )
TAB_APPEND( t->i_seekpoint, t->seekpoint, s );
}
-#if DYNAMICALLY_ALLOCATED
+#ifdef DYNAMICALLY_ALLOCATED
TAB_APPEND( p_vcdplayer->i_titles, p_vcdplayer->p_title, t );
#else
p_vcdplayer->p_title[p_vcdplayer->i_titles] = t;
@@ -958,13 +958,13 @@ VCDOpen ( vlc_object_t *p_this )
free( p_access->psz_demux );
p_access->psz_demux = strdup( "ps" );
-#if FIXED
+#ifdef FIXED
if (play_single_item)
VCDFixupPlayList( p_access, p_vcd, psz_source, &itemid,
play_single_item );
#endif
-#if FIXED
+#ifdef FIXED
p_vcdplayer->p_intf = intf_Create( p_access, "vcdx" );
p_vcdplayer->p_intf->b_block = false;
#endif
diff --git a/modules/access/vcdx/intf.h b/modules/access/vcdx/intf.h
index 5a2f949..44a568c 100644
--- a/modules/access/vcdx/intf.h
+++ b/modules/access/vcdx/intf.h
@@ -38,7 +38,7 @@ struct intf_sys_t
mtime_t m_still_time; /* Time in microseconds remaining
to wait in still frame.
*/
-#if FINISHED
+#ifdef FINISHED
vcdplay_ctrl_t control;
#else
int control;
diff --git a/modules/access/vcdx/vcd.h b/modules/access/vcdx/vcd.h
index 2331f9c..23685cf 100644
--- a/modules/access/vcdx/vcd.h
+++ b/modules/access/vcdx/vcd.h
@@ -31,12 +31,12 @@
*****************************************************************************/
typedef struct
{
-#if FINISHED
+#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
@@ -44,7 +44,7 @@ typedef struct
int i_still_time;
bool b_end_of_cell;
-#if FINISHED
+#ifdef FINISHED
vcdplay_event_t event;
vcdplay_ctrl_t control;
vcdplay_highlight_t hli;
More information about the vlc-devel
mailing list