diff --git a/dom/media/encoder/OmxTrackEncoder.cpp b/dom/media/encoder/OmxTrackEncoder.cpp index cc36f9884326..2203dd0c2449 100644 --- a/dom/media/encoder/OmxTrackEncoder.cpp +++ b/dom/media/encoder/OmxTrackEncoder.cpp @@ -26,6 +26,13 @@ namespace mozilla { #define ENCODER_CONFIG_FRAME_RATE 30 // fps #define GET_ENCODED_VIDEO_FRAME_TIMEOUT 100000 // microseconds +OmxVideoTrackEncoder::OmxVideoTrackEncoder() + : VideoTrackEncoder() +{} + +OmxVideoTrackEncoder::~OmxVideoTrackEncoder() +{} + nsresult OmxVideoTrackEncoder::Init(int aWidth, int aHeight, int aDisplayWidth, int aDisplayHeight, TrackRate aTrackRate) @@ -162,6 +169,13 @@ OmxVideoTrackEncoder::GetEncodedTrack(EncodedFrameContainer& aData) return NS_OK; } +OmxAudioTrackEncoder::OmxAudioTrackEncoder() + : AudioTrackEncoder() +{} + +OmxAudioTrackEncoder::~OmxAudioTrackEncoder() +{} + nsresult OmxAudioTrackEncoder::AppendEncodedFrames(EncodedFrameContainer& aContainer) { diff --git a/dom/media/encoder/OmxTrackEncoder.h b/dom/media/encoder/OmxTrackEncoder.h index b11dc2570785..cf447e07853f 100644 --- a/dom/media/encoder/OmxTrackEncoder.h +++ b/dom/media/encoder/OmxTrackEncoder.h @@ -26,9 +26,8 @@ namespace mozilla { class OmxVideoTrackEncoder: public VideoTrackEncoder { public: - OmxVideoTrackEncoder() - : VideoTrackEncoder() - {} + OmxVideoTrackEncoder(); + ~OmxVideoTrackEncoder(); already_AddRefed GetMetadata() MOZ_OVERRIDE; @@ -46,9 +45,8 @@ private: class OmxAudioTrackEncoder : public AudioTrackEncoder { public: - OmxAudioTrackEncoder() - : AudioTrackEncoder() - {} + OmxAudioTrackEncoder(); + ~OmxAudioTrackEncoder(); already_AddRefed GetMetadata() = 0;