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:
authorRob Haarsma <phaseIV@zonnet.nl>2003-09-18 15:41:50 +0400
committerRob Haarsma <phaseIV@zonnet.nl>2003-09-18 15:41:50 +0400
commit99efb0cc3c6a55ae96deb59ddb062239dd2a8982 (patch)
treeb2e61c38c00aea513d20f75bff55877746f4c022 /source/blender/quicktime
parent775f006bf1202abb5b9f69ecc3ab4cd1dd28a508 (diff)
removed native quicktime init/exit calls from main blender code.
Diffstat (limited to 'source/blender/quicktime')
-rw-r--r--source/blender/quicktime/apple/quicktime_import.c41
1 files changed, 29 insertions, 12 deletions
diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c
index eeaa8c4189e..72a571570cf 100644
--- a/source/blender/quicktime/apple/quicktime_import.c
+++ b/source/blender/quicktime/apple/quicktime_import.c
@@ -59,28 +59,45 @@
#define QTIME_DEBUG 0
-void init_quicktime(void)
+void quicktime_init(void)
{
#ifdef _WIN32
- if (InitializeQTML(0) != noErr)
- G.have_quicktime = FALSE;
- else
- G.have_quicktime = TRUE;
+ if (InitializeQTML(0) != noErr)
+ G.have_quicktime = FALSE;
+ else
+ G.have_quicktime = TRUE;
#endif /* _WIN32 */
- /* Initialize QuickTime */
+ /* Initialize QuickTime */
#if defined(_WIN32) || defined (__APPLE__)
- if (EnterMovies() != noErr)
- G.have_quicktime = FALSE;
- else
+ if (EnterMovies() != noErr)
+ G.have_quicktime = FALSE;
+ else
#endif /* _WIN32 || __APPLE__ */
#ifdef __linux__
- /* inititalize quicktime codec registry */
- lqt_registry_init();
+ /* inititalize quicktime codec registry */
+ lqt_registry_init();
#endif
- G.have_quicktime = TRUE;
+ G.have_quicktime = TRUE;
}
+
+void quicktime_exit(void)
+{
+#if defined(_WIN32) || defined(__APPLE__)
+#ifdef WITH_QUICKTIME
+ if(G.have_quicktime) {
+ free_qtcodecdataExt();
+ ExitMovies();
+#ifdef _WIN32
+ TerminateQTML();
+#endif /* _WIN32 */
+ }
+#endif /* WITH_QUICKTIME */
+#endif /* _WIN32 || __APPLE__ */
+}
+
+
int anim_is_quicktime (char *name)
{
FSSpec theFSSpec;