From e1ebf22921c7c57467d34fa6cf663e901b2b4964 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 2 Oct 2007 00:00:06 +0000 Subject: [PATCH] sequence.c - compiling bugfix/hack When compiling Blender without FMMPEG here, compiling broke on this file after the prefetch buffering commit. I've added some #ifdefs to fix this in the meantime, but Peter should check. --- source/blender/src/sequence.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/source/blender/src/sequence.c b/source/blender/src/sequence.c index 333f3d24e6e..84ccf1a0311 100644 --- a/source/blender/src/sequence.c +++ b/source/blender/src/sequence.c @@ -70,7 +70,10 @@ #include "RE_pipeline.h" // talks to entire render API #include "blendef.h" + +#ifdef WITH_FFMPEG #include +#endif int seqrectx, seqrecty; @@ -1180,6 +1183,7 @@ ImBuf *give_ibuf_seq(int rectx, int recty, int cfra, int chanshown) } +#ifdef WITH_FFMPEG /* threading api only available if ffmpeg is being compiled */ /* threading api */ static ListBase running_threads; @@ -1496,8 +1500,34 @@ ImBuf * give_ibuf_threaded(int rectx, int recty, int cfra, int chanshown) return e ? e->ibuf : 0; } +#else /* if ffmpeg not in use, here are dummy functions to prevent linking errors */ +void seq_start_threads() +{ + +} +void seq_stop_threads() +{ + +} + +void give_ibuf_prefetch_request(int rectx, int recty, int cfra, int chanshown) +{ + +} + +void seq_wait_for_prefetch_ready() +{ + +} + +ImBuf * give_ibuf_threaded(int rectx, int recty, int cfra, int chanshown) +{ + return 0; +} + +#endif /* Functions to free imbuf and anim data on changes */