From Serge Lages, "Here is a fix for the Quicktime plugin, with the previous version, the size for some videos was not correct, using GetMovieBoundsRgn instead of GetMovieBox returns the real movie size.

"
This commit is contained in:
Robert Osfield
2010-01-27 17:12:40 +00:00
parent 0a9263d50e
commit 13531757c4

View File

@@ -93,11 +93,10 @@ void MovieData::load(osg::Image* image, std::string afilename, float startTime)
}
Rect bounds;
Rect bounds = (*GetMovieBoundsRgn(_movie))->rgnBBox;
GetMovieBox(_movie, &bounds);
_checkMovieError("Can't get movie box\n");
_checkMovieError("Can't get movie bounds\n");
OffsetRect(&bounds, -bounds.left, -bounds.top);
SetMovieBox(_movie, &bounds);
_checkMovieError("Can't set movie box\n");