diff --git a/Core/HLE/sceNet.cpp b/Core/HLE/sceNet.cpp index db845942e0..85d68d8d4c 100644 --- a/Core/HLE/sceNet.cpp +++ b/Core/HLE/sceNet.cpp @@ -394,7 +394,7 @@ const HLEFunction sceNetInet[] = { {0xcda85c99, WrapI_IUUU, "sceNetInetRecv"}, {0xc91142e4, 0, "sceNetInetRecvfrom"}, {0xeece61d2, 0, "sceNetInetRecvmsg"}, - {0x7aa671bc, WrapI_IUUU, "sceNetInetSend"}, + {0x7aa671bc, WrapI_IUUU, "sceNetInetSend"}, {0x05038fc7, 0, "sceNetInetSendto"}, {0x774e36f4, 0, "sceNetInetSendmsg"}, {0xfbabe411, WrapI_V, "sceNetInetGetErrno"}, diff --git a/Core/HW/MediaEngine.cpp b/Core/HW/MediaEngine.cpp index 4e4b3d0d8c..a933ea83f0 100644 --- a/Core/HW/MediaEngine.cpp +++ b/Core/HW/MediaEngine.cpp @@ -333,13 +333,16 @@ int MediaEngine::addStreamData(u8* buffer, int addSize) { m_demux->demux(m_audioStream); } #ifdef USE_FFMPEG - if (!m_pFormatCtx) { + if (!m_pFormatCtx && m_pdata->getQueueSize() >= 2048 * 6) { m_pdata->get_front(m_mpegheader, sizeof(m_mpegheader)); int mpegoffset = bswap32(*(int*)(m_mpegheader + 8)); m_pdata->pop_front(0, mpegoffset); openContext(); } #endif // USE_FFMPEG + + // We added data, so... not the end anymore? + m_isVideoEnd = false; } return size; } diff --git a/GPU/GLES/GLES_GPU.cpp b/GPU/GLES/GLES_GPU.cpp index 4f8de349e6..fbc3665b45 100644 --- a/GPU/GLES/GLES_GPU.cpp +++ b/GPU/GLES/GLES_GPU.cpp @@ -1548,6 +1548,8 @@ void GLES_GPU::DoBlockTransfer() { // TODO: Notify all overlapping FBOs that they need to reload. textureCache_.Invalidate(dstBasePtr + (dstY * dstStride + dstX) * bpp, height * dstStride * bpp, GPU_INVALIDATE_HINT); + if (Memory::IsRAMAddress(srcBasePtr) && Memory::IsVRAMAddress(dstBasePtr)) + framebufferManager_.UpdateFromMemory(dstBasePtr, (dstY + height) * dstStride * bpp, true); // A few games use this INSTEAD of actually drawing the video image to the screen, they just blast it to // the backbuffer. Detect this and have the framebuffermanager draw the pixels.