[Scummvm-git-logs] scummvm master -> d00915fe59dbb991b1540cf57f259554037afd8f

ccawley2011 noreply at scummvm.org
Thu Dec 14 17:55:59 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d00915fe59 TETRAEDGE: Call setOutputPixelFormat() after loading the video


Commit: d00915fe59dbb991b1540cf57f259554037afd8f
    https://github.com/scummvm/scummvm/commit/d00915fe59dbb991b1540cf57f259554037afd8f
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2023-12-14T17:55:32Z

Commit Message:
TETRAEDGE: Call setOutputPixelFormat() after loading the video

Changed paths:
    engines/tetraedge/te/te_theora.cpp


diff --git a/engines/tetraedge/te/te_theora.cpp b/engines/tetraedge/te/te_theora.cpp
index a8c67acc3de..76591727d86 100644
--- a/engines/tetraedge/te/te_theora.cpp
+++ b/engines/tetraedge/te/te_theora.cpp
@@ -27,7 +27,6 @@ namespace Tetraedge {
 
 TeTheora::TeTheora() : _hitEnd(false) {
 	_decoder = new Video::TheoraDecoder();
-	_decoder->setOutputPixelFormat(Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24));
 }
 
 TeTheora::~TeTheora() {
@@ -41,7 +40,10 @@ bool TeTheora::matchExtension(const Common::String &extn) {
 
 bool TeTheora::load(const Common::FSNode &node) {
 	_loadedNode = node;
-	return _decoder->loadStream(node.createReadStream());
+	if (!_decoder->loadStream(node.createReadStream()))
+		return false;
+	_decoder->setOutputPixelFormat(Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24));
+	return true;
 }
 
 uint TeTheora::width() {




More information about the Scummvm-git-logs mailing list