mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Make !USE_FFMPEG savestates compatible.
This commit is contained in:
parent
efad755ccc
commit
3e762f2864
@ -204,10 +204,12 @@ void MediaEngine::DoState(PointerWrap &p){
|
||||
loadStream(m_mpegheader, 2048, m_ringbuffersize);
|
||||
#ifdef USE_FFMPEG
|
||||
u32 hasopencontext = m_pFormatCtx != NULL;
|
||||
#else
|
||||
u32 hasopencontext = false;
|
||||
#endif
|
||||
p.Do(hasopencontext);
|
||||
if (hasopencontext && p.mode == p.MODE_READ)
|
||||
openContext();
|
||||
#endif
|
||||
if (m_pdata)
|
||||
m_pdata->DoState(p);
|
||||
if (m_demux)
|
||||
@ -618,6 +620,8 @@ int MediaEngine::writeVideoImageWithRange(u8* buffer, int frameWidth, int videoP
|
||||
u8 *MediaEngine::getFrameImage() {
|
||||
#ifdef USE_FFMPEG
|
||||
return m_pFrameRGB->data[0];
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,6 @@
|
||||
#include "gfx/texture.h"
|
||||
#include "input/input_state.h"
|
||||
#include "math/math_util.h"
|
||||
#include "base/mutex.h"
|
||||
#include "math/lin/matrix4x4.h"
|
||||
#include <QGLWidget>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user