Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-21 14:24:30 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-21 14:24:30 +0400
commit671e3df070c7868d8a5a445ebab5f819718270c4 (patch)
tree001f1b4156b833107263cfb734ef05c2141f9e1b /source/blender/windowmanager/intern/wm_playanim.c
parent34ad9ec0046b9fe521a1a2bbbcea34409384005a (diff)
Fix #32370: compiler error in wm_playanim.c due to conflicting Carbon ID type
from Quicktime headers. However the Quicktime init/exit is no longer needed here, it happens in IMB_init/IMB_exit now, so removed that code.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_playanim.c')
-rw-r--r--source/blender/windowmanager/intern/wm_playanim.c47
1 files changed, 4 insertions, 43 deletions
diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c
index 3c791cb6e5d..9fc3bf9cece 100644
--- a/source/blender/windowmanager/intern/wm_playanim.c
+++ b/source/blender/windowmanager/intern/wm_playanim.c
@@ -49,11 +49,12 @@
#include "PIL_time.h"
+#include "BLI_fileops.h"
#include "BLI_listbase.h"
-#include "BLI_string.h"
#include "BLI_path_util.h"
-#include "BLI_fileops.h"
#include "BLI_rect.h"
+#include "BLI_string.h"
+#include "BLI_utildefines.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
@@ -65,22 +66,12 @@
#include "BIF_gl.h"
#include "BIF_glutil.h"
-#ifdef WITH_QUICKTIME
-# ifdef _WIN32
-# include <QTML.h>
-# include <Movies.h>
-# elif defined(__APPLE__)
-# include <QuickTime/Movies.h>
-# endif /* __APPLE__ */
-#endif /* WITH_QUICKTIME */
-
#include "DNA_scene_types.h"
-#include "BLI_utildefines.h"
#include "ED_datafiles.h" /* for fonts */
-#include "wm_event_types.h"
#include "GHOST_C-api.h"
#include "BLF_api.h"
+#include "wm_event_types.h"
typedef struct PlayState {
@@ -827,26 +818,6 @@ void playanim(int argc, const char **argv)
}
}
-#ifdef WITH_QUICKTIME
-#if defined(_WIN32) || defined(__APPLE__) && !defined(GHOST_COCOA)
- /* Initialize QuickTime */
-#ifndef noErr
-#define noErr 0
-#endif
-
-#ifdef _WIN32
- if (InitializeQTML(0) != noErr)
- G.have_quicktime = FALSE;
- else
- G.have_quicktime = TRUE;
-#endif /* _WIN32 */
- if (EnterMovies() != noErr)
- G.have_quicktime = FALSE;
- else
-#endif /* _WIN32 || __APPLE__ && !defined(GHOST_COCOA)*/
- G.have_quicktime = TRUE;
-#endif /* WITH_QUICKTIME */
-
if (argc > 1) {
BLI_strncpy(filepath, argv[1], sizeof(filepath));
}
@@ -1098,16 +1069,6 @@ void playanim(int argc, const char **argv)
ps.picture = ps.picture->next;
}
-#ifdef WITH_QUICKTIME
-#if defined(_WIN32) || defined(__APPLE__) && !defined(GHOST_COCOA)
- if (G.have_quicktime) {
- ExitMovies();
-#ifdef _WIN32
- TerminateQTML();
-#endif /* _WIN32 */
- }
-#endif /* _WIN32 || __APPLE__ && !defined(GHOST_COCOA) */
-#endif /* WITH_QUICKTIME */
/* cleanup */
#ifndef USE_IMB_CACHE