Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Make MediaSourceDecoder inherit from GeckoMediaDecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Dec 18, 2017
1 parent a0fdf67 commit dab0f5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion gecko-media/data/header_files.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"MediaResult.h": "dom/media/MediaResult.h",
"MediaSegment.h": "dom/media/MediaSegment.h",
"MediaShutdownManager.h": "dom/media/MediaShutdownManager.h",
"MediaSourceDecoder.h": "dom/media/mediasource/MediaSourceDecoder.h",
"MediaSourceDemuxer.h": "dom/media/mediasource/MediaSourceDemuxer.h",
"MediaSourceUtils.h": "dom/media/mediasource/MediaSourceUtils.h",
"MediaStatistics.h": "dom/media/MediaStatistics.h",
Expand Down
4 changes: 2 additions & 2 deletions gecko-media/gecko/glue/MediaSourceDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace mozilla::media;
namespace mozilla {

MediaSourceDecoder::MediaSourceDecoder(MediaDecoderInit& aInit)
: MediaDecoder(aInit)
: GeckoMediaDecoder(aInit)
, mMediaSource(nullptr)
, mEnded(false)
{
Expand Down Expand Up @@ -177,7 +177,7 @@ MediaSourceDecoder::Shutdown()
}
mDemuxer = nullptr;

MediaDecoder::Shutdown();
GeckoMediaDecoder::Shutdown();
}

void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef MOZILLA_MEDIASOURCEDECODER_H_
#define MOZILLA_MEDIASOURCEDECODER_H_

#include "MediaDecoder.h"
#include "GeckoMediaDecoder.h"
#include "mozilla/RefPtr.h"

namespace mozilla {
Expand All @@ -21,7 +21,7 @@ class MediaSource;

} // namespace dom

class MediaSourceDecoder : public MediaDecoder
class MediaSourceDecoder : public GeckoMediaDecoder
{
public:
explicit MediaSourceDecoder(MediaDecoderInit& aInit);
Expand Down Expand Up @@ -75,7 +75,6 @@ class MediaSourceDecoder : public MediaDecoder
void DoSetMediaSourceDuration(double aDuration);
media::TimeInterval ClampIntervalToEnd(const media::TimeInterval& aInterval);
bool CanPlayThroughImpl() override;
bool IsLiveStream() override final { return !mEnded; }

RefPtr<nsIPrincipal> mPrincipal;

Expand Down

0 comments on commit dab0f5c

Please sign in to comment.