зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1317576. Part 4 - remove unused MediaDecoder::SeekResolveValue. r=cpearce
MozReview-Commit-ID: 9H6e0gFvWeT --HG-- extra : rebase_source : 268efe92dda716f73a83493a4b3deaa599118fd6 extra : source : 972ed89cd3fb09004424d42c08c806a789c67361
This commit is contained in:
Родитель
c1b6a6bf65
Коммит
acf75cb684
|
@ -1125,7 +1125,7 @@ MediaDecoder::NotifyBytesConsumed(int64_t aBytes, int64_t aOffset)
|
|||
}
|
||||
|
||||
void
|
||||
MediaDecoder::OnSeekResolved(SeekResolveValue aVal)
|
||||
MediaDecoder::OnSeekResolved()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(!IsShutdown());
|
||||
|
|
|
@ -58,9 +58,6 @@ enum class MediaEventType : int8_t;
|
|||
class MediaDecoder : public AbstractMediaDecoder
|
||||
{
|
||||
public:
|
||||
struct SeekResolveValue {
|
||||
};
|
||||
|
||||
// Used to register with MediaResource to receive notifications which will
|
||||
// be forwarded to MediaDecoder.
|
||||
class ResourceCallback : public MediaResourceCallback {
|
||||
|
@ -95,7 +92,7 @@ public:
|
|||
bool mTimerArmed = false;
|
||||
};
|
||||
|
||||
typedef MozPromise<SeekResolveValue, bool /* aIgnored */, /* IsExclusive = */ true> SeekPromise;
|
||||
typedef MozPromise<bool /* aIgnored */, bool /* aIgnored */, /* IsExclusive = */ true> SeekPromise;
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
|
@ -385,7 +382,7 @@ private:
|
|||
void PlaybackEnded();
|
||||
|
||||
void OnSeekRejected();
|
||||
void OnSeekResolved(SeekResolveValue aVal);
|
||||
void OnSeekResolved();
|
||||
|
||||
void SeekingChanged()
|
||||
{
|
||||
|
|
|
@ -41,8 +41,7 @@ bool SeekJob::Exists() const
|
|||
|
||||
void SeekJob::Resolve(const char* aCallSite)
|
||||
{
|
||||
MediaDecoder::SeekResolveValue val;
|
||||
mPromise.Resolve(val, aCallSite);
|
||||
mPromise.Resolve(true, aCallSite);
|
||||
mTarget.Reset();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче