瀏覽代碼

compile without FFMPEG

David Rose 18 年之前
父節點
當前提交
c86c4a7acb
共有 2 個文件被更改,包括 8 次插入0 次删除
  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::
 load(const Filename &name) {
+#ifdef HAVE_FFMPEG
   // Someday, I'll probably put a dispatcher here.
   // But for now, just hardwire it to go to FFMPEG.
   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::
 load(const Filename &name) {
+#ifdef HAVE_FFMPEG
   // Someday, I'll probably put a dispatcher here.
   // But for now, just hardwire it to go to FFMPEG.
   return new FfmpegVideo(name);
+#else
+  return NULL;
+#endif
 }