From 75c840b52782489639e95509495bd3ddf3513fea Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 20 Jan 2011 12:28:22 +0000 Subject: VIDEO: Add hasVideo() svn-id: r55348 --- graphics/video/coktel_decoder.cpp | 8 ++++++++ graphics/video/coktel_decoder.h | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp index fe5d90499e..cb1d968d16 100644 --- a/graphics/video/coktel_decoder.cpp +++ b/graphics/video/coktel_decoder.cpp @@ -167,6 +167,10 @@ bool CoktelDecoder::hasPalette() const { return (_features & kFeaturesPalette) != 0; } +bool CoktelDecoder::hasVideo() const { + return true; +} + bool CoktelDecoder::hasSound() const { return _hasSound; } @@ -2716,6 +2720,10 @@ int32 VMDDecoder::getSubtitleIndex() const { return _subtitle; } +bool VMDDecoder::hasVideo() const { + return _hasVideo; +} + bool VMDDecoder::isPaletted() const { return _isPaletted; } diff --git a/graphics/video/coktel_decoder.h b/graphics/video/coktel_decoder.h index d2e927c8e0..441bdc8184 100644 --- a/graphics/video/coktel_decoder.h +++ b/graphics/video/coktel_decoder.h @@ -90,6 +90,7 @@ public: const Common::List &getDirtyRects() const; bool hasPalette() const; + virtual bool hasVideo() const; bool hasSound() const; bool isSoundEnabled() const; @@ -355,7 +356,8 @@ public: int32 getSubtitleIndex() const; - virtual bool isPaletted() const; + bool hasVideo() const; + bool isPaletted() const; // VideoDecoder interface -- cgit v1.2.3