MCPcopy Create free account
hub / github.com/cinder/Cinder / updateLoadState

Method updateLoadState

src/cinder/qtime/QuickTimeImplLegacy.cpp:228–241  ·  view source on GitHub ↗

checks movie's current loadstate and updates mLoaded and mPlayable accordingly

Source from the content-addressed store, hash-verified

226
227// checks movie's current loadstate and updates mLoaded and mPlayable accordingly
228void MovieBase::updateLoadState()
229{
230 ::MoviesTask( getObj()->mMovie, 0 );
231 long state;
232 state = ::GetMovieLoadState( getObj()->mMovie );
233 if( state == kMovieLoadStateError )
234 throw QuickTimeErrorLoadingExc();
235 if( ( ! getObj()->mLoaded ) && ( state >= kMovieLoadStateLoaded ) ) {
236 getObj()->mLoaded = true;
237 }
238 if( state >= kMovieLoadStatePlaythroughOK ) {
239 getObj()->mPlayable = true;
240 }
241}
242
243//! \return The movie has loaded and buffered enough to playback without interruption
244bool MovieBase::checkPlayable()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected