Changeset 11019

Show
Ignore:
Timestamp:
01/27/10 18:12:40 (4 years ago)
Author:
robert
Message:

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.
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/quicktime/MovieData.cpp

    r10891 r11019  
    9494     
    9595     
    96     Rect bounds; 
     96    Rect bounds = (*GetMovieBoundsRgn(_movie))->rgnBBox; 
    9797  
    98     GetMovieBox(_movie, &bounds); 
    99     _checkMovieError("Can't get movie box\n"); 
    100      
     98    _checkMovieError("Can't get movie bounds\n"); 
     99 
    101100    OffsetRect(&bounds, -bounds.left, -bounds.top); 
    102101    SetMovieBox(_movie, &bounds);