summaryrefslogtreecommitdiffstats
path: root/dom/media/platforms/agnostic/VPXDecoder.h
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-10-08 21:10:31 -0500
committertrav90 <travawine@palemoon.org>2018-10-08 21:10:31 -0500
commit5a83ed9ebacfa2bd653953b359dd5456817b03c3 (patch)
tree986180ad48bd0490ef9c12e4c710469741ec1c87 /dom/media/platforms/agnostic/VPXDecoder.h
parentae3cdb4be3cfe1faccf1d8a74928391570952609 (diff)
downloadUXP-5a83ed9ebacfa2bd653953b359dd5456817b03c3.tar
UXP-5a83ed9ebacfa2bd653953b359dd5456817b03c3.tar.gz
UXP-5a83ed9ebacfa2bd653953b359dd5456817b03c3.tar.lz
UXP-5a83ed9ebacfa2bd653953b359dd5456817b03c3.tar.xz
UXP-5a83ed9ebacfa2bd653953b359dd5456817b03c3.zip
[vpx] Store VPXDecoder codec as an enum
Use the enum we already have here instead of converting to an int when we pass it around, giving us better type checking.
Diffstat (limited to 'dom/media/platforms/agnostic/VPXDecoder.h')
-rw-r--r--dom/media/platforms/agnostic/VPXDecoder.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/media/platforms/agnostic/VPXDecoder.h b/dom/media/platforms/agnostic/VPXDecoder.h
index d420ec069..4d57ebf94 100644
--- a/dom/media/platforms/agnostic/VPXDecoder.h
+++ b/dom/media/platforms/agnostic/VPXDecoder.h
@@ -36,7 +36,8 @@ public:
enum Codec: uint8_t {
VP8 = 1 << 0,
- VP9 = 1 << 1
+ VP9 = 1 << 1,
+ Unknown = 1 << 7,
};
// Return true if aMimeType is a one of the strings used by our demuxers to
@@ -61,7 +62,7 @@ private:
const VideoInfo& mInfo;
- const int mCodec;
+ const Codec mCodec;
};
} // namespace mozilla