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:
authorStefan Gartner <stefang@aon.at>2004-01-08 19:28:45 +0300
committerStefan Gartner <stefang@aon.at>2004-01-08 19:28:45 +0300
commit239edfc2729983f8223486dc7985c7860ebef995 (patch)
tree743c8dc18a85a29ae92aebdab9e3c10e507178e7 /source/blender/quicktime
parent0be1e050a5164275d8fb831a77bf874583d6a726 (diff)
some cosmetic changes to make the compiler shut up when building with scons
on os x
Diffstat (limited to 'source/blender/quicktime')
-rw-r--r--source/blender/quicktime/apple/quicktime_import.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c
index 72a571570cf..27270e56ee3 100644
--- a/source/blender/quicktime/apple/quicktime_import.c
+++ b/source/blender/quicktime/apple/quicktime_import.c
@@ -101,7 +101,6 @@ void quicktime_exit(void)
int anim_is_quicktime (char *name)
{
FSSpec theFSSpec;
- Str255 dst;
char theFullPath[255];
Boolean isMovieFile = false;
@@ -110,6 +109,8 @@ int anim_is_quicktime (char *name)
#ifdef __APPLE__
FInfo myFinderInfo;
FSRef myRef;
+#else
+ Str255 dst;
#endif
OSErr err = noErr;
@@ -244,7 +245,9 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position)
ImBuf *ibuf = NULL;
unsigned int *rect;
+#ifdef _WIN32
unsigned char *crect;
+#endif
if (anim == NULL) {
return (NULL);
@@ -314,7 +317,7 @@ int GetFirstVideoMedia(struct anim *anim)
if (anim->qtime->theMedia)
GetMediaHandlerDescription(anim->qtime->theMedia,&mediaType, nil, nil);
- if (mediaType = VideoMediaType) return 1;
+ if (mediaType == VideoMediaType) return 1;
}
anim->qtime->trackIndex = 0; // trackIndex can't be 0
@@ -341,10 +344,11 @@ int startquicktime (struct anim *anim)
FSSpec theFSSpec;
OSErr err = noErr;
- Str255 dst;
char theFullPath[255];
#ifdef __APPLE__
FSRef myRef;
+#else
+ Str255 dst;
#endif
anim->qtime = MEM_callocN (sizeof(QuicktimeMovie),"animqt");
@@ -376,7 +380,7 @@ int startquicktime (struct anim *anim)
}
if (err) {
- if(QTIME_DEBUG) printf("qt: bad movie\n", anim->name);
+ if(QTIME_DEBUG) printf("qt: bad movie %s\n", anim->name);
if (anim->qtime->movie) {
DisposeMovie(anim->qtime->movie);
MEM_freeN(anim->qtime);
@@ -388,7 +392,7 @@ int startquicktime (struct anim *anim)
GetMovieBox(anim->qtime->movie, &anim->qtime->movieBounds);
anim->x = anim->qtime->movWidth = RECT_WIDTH(anim->qtime->movieBounds);
anim->y = anim->qtime->movHeight = RECT_HEIGHT(anim->qtime->movieBounds);
- if(QTIME_DEBUG) printf("qt: got bounds\n", anim->name);
+ if(QTIME_DEBUG) printf("qt: got bounds %s\n", anim->name);
if(anim->x == 0 && anim->y == 0) {
if(QTIME_DEBUG) printf("qt: error, no dimensions\n");