Browse Source

Patch from Adam Fix movie playback in Opening Sequence

- copy fMoviePath in plMoviePlayer::SetFileName() rather than use existing pointer
- fix inability of xOpeningSequence.py to play movie.  File path provided not persistent.
rarified/movieplayer
Adam Johnson 4 years ago committed by rarified
parent
commit
f7bc877285
  1. 1
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.cpp
  2. 6
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.h

1
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.cpp

@ -193,6 +193,7 @@ plMoviePlayer::~plMoviePlayer()
delete fReader;
}
#endif
delete[] fMoviePath;
}
bool plMoviePlayer::IOpenMovie()

6
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/FeatureLib/pfMoviePlayer/plMoviePlayer.h

@ -102,7 +102,11 @@ public:
plMessage* GetCallback(int i) const { return nullptr; }
const char *GetFileName() const { return fMoviePath; }
void SetFileName(const char* filename) { fMoviePath = filename; }
void SetFileName(const char* filename)
{
delete[] fMoviePath;
fMoviePath = hsStrcpy(filename);
}
void SetColor(const hsColorRGBA& c) { }
const hsColorRGBA GetColor() const { return hsColorRGBA(); }

Loading…
Cancel
Save