mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 06:00:48 +00:00
GRIM: Don't assert out when failing to open a video
This commit is contained in:
parent
3c1957e902
commit
282d3e221c
@ -88,7 +88,6 @@ void BinkPlayer::init() {
|
||||
void BinkPlayer::deinit() {
|
||||
g_system->getTimerManager()->removeTimerProc(&timerCallback);
|
||||
_binkDecoder->close();
|
||||
_f.close();
|
||||
_surface->free();
|
||||
|
||||
if (_externalBuffer) {
|
||||
@ -153,9 +152,10 @@ bool BinkPlayer::play(const char *filename, bool looping, int x, int y) {
|
||||
_y = y;
|
||||
_fname = filename;
|
||||
_fname += ".bik";
|
||||
_f.open(_fname);
|
||||
|
||||
_binkDecoder->loadStream(&_f);
|
||||
|
||||
if (!_binkDecoder->loadFile(_fname))
|
||||
return false;
|
||||
|
||||
if (gDebugLevel == DEBUG_SMUSH)
|
||||
printf("Playing video '%s'.\n", filename);
|
||||
|
||||
|
@ -47,7 +47,6 @@ namespace Grim {
|
||||
|
||||
class BinkPlayer : public MoviePlayer {
|
||||
private:
|
||||
Common::File _f;
|
||||
Video::BinkDecoder *_binkDecoder;
|
||||
Graphics::Surface *_surface, *_externalSurface;
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user