summaryrefslogtreecommitdiff
path: root/dom/media/MediaDecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/MediaDecoder.cpp')
-rw-r--r--dom/media/MediaDecoder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp
index 10b97f7e65..87454a4686 100644
--- a/dom/media/MediaDecoder.cpp
+++ b/dom/media/MediaDecoder.cpp
@@ -29,7 +29,9 @@
#include "mozilla/dom/VideoTrack.h"
#include "mozilla/dom/VideoTrackList.h"
#include "nsPrintfCString.h"
+#ifdef MOZ_GMP
#include "GMPService.h"
+#endif
#include "Layers.h"
#include "mozilla/layers/ShadowLayers.h"
@@ -933,6 +935,7 @@ MediaDecoder::OwnerHasError() const
return mOwner->HasError();
}
+#ifdef MOZ_GMP
class MediaElementGMPCrashHelper : public GMPCrashHelper
{
public:
@@ -960,6 +963,7 @@ MediaDecoder::GetCrashHelper()
return mOwner->GetMediaElement() ?
MakeAndAddRef<MediaElementGMPCrashHelper>(mOwner->GetMediaElement()) : nullptr;
}
+#endif
bool
MediaDecoder::IsEnded() const