Browse Source

compile without FFMPEG

David Rose 18 years ago
parent
commit
c86c4a7acb
2 changed files with 8 additions and 0 deletions
  1. 4 0
      panda/src/movies/movieAudio.cxx
  2. 4 0
      panda/src/movies/movieVideo.cxx

+ 4 - 0
panda/src/movies/movieAudio.cxx

@@ -112,7 +112,11 @@ make_copy() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 PT(MovieAudio) MovieAudio::
 PT(MovieAudio) MovieAudio::
 load(const Filename &name) {
 load(const Filename &name) {
+#ifdef HAVE_FFMPEG
   // Someday, I'll probably put a dispatcher here.
   // Someday, I'll probably put a dispatcher here.
   // But for now, just hardwire it to go to FFMPEG.
   // But for now, just hardwire it to go to FFMPEG.
   return new FfmpegAudio(name);
   return new FfmpegAudio(name);
+#else
+  return NULL;
+#endif
 }
 }

+ 4 - 0
panda/src/movies/movieVideo.cxx

@@ -294,8 +294,12 @@ make_copy() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 PT(MovieVideo) MovieVideo::
 PT(MovieVideo) MovieVideo::
 load(const Filename &name) {
 load(const Filename &name) {
+#ifdef HAVE_FFMPEG
   // Someday, I'll probably put a dispatcher here.
   // Someday, I'll probably put a dispatcher here.
   // But for now, just hardwire it to go to FFMPEG.
   // But for now, just hardwire it to go to FFMPEG.
   return new FfmpegVideo(name);
   return new FfmpegVideo(name);
+#else
+  return NULL;
+#endif
 }
 }