зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1178680 - Remove MediaDecoder::Observe as we have MediaShutdownManager. r=cpearce.
This commit is contained in:
Родитель
82fb026ef0
Коммит
fdfaf1fa60
|
@ -141,7 +141,7 @@ MediaDecoder::InitStatics()
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS(MediaMemoryTracker, nsIMemoryReporter)
|
NS_IMPL_ISUPPORTS(MediaMemoryTracker, nsIMemoryReporter)
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS(MediaDecoder, nsIObserver)
|
NS_IMPL_ISUPPORTS0(MediaDecoder)
|
||||||
|
|
||||||
void MediaDecoder::NotifyOwnerActivityChanged()
|
void MediaDecoder::NotifyOwnerActivityChanged()
|
||||||
{
|
{
|
||||||
|
@ -812,18 +812,6 @@ void MediaDecoder::PlaybackEnded()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP MediaDecoder::Observe(nsISupports *aSubjet,
|
|
||||||
const char *aTopic,
|
|
||||||
const char16_t *someData)
|
|
||||||
{
|
|
||||||
MOZ_ASSERT(NS_IsMainThread());
|
|
||||||
if (strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID) == 0) {
|
|
||||||
Shutdown();
|
|
||||||
}
|
|
||||||
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
MediaDecoder::Statistics
|
MediaDecoder::Statistics
|
||||||
MediaDecoder::GetStatistics()
|
MediaDecoder::GetStatistics()
|
||||||
{
|
{
|
||||||
|
|
|
@ -277,7 +277,6 @@ public:
|
||||||
typedef MediaPromise<SeekResolveValue, bool /* aIgnored */, /* IsExclusive = */ true> SeekPromise;
|
typedef MediaPromise<SeekResolveValue, bool /* aIgnored */, /* IsExclusive = */ true> SeekPromise;
|
||||||
|
|
||||||
NS_DECL_THREADSAFE_ISUPPORTS
|
NS_DECL_THREADSAFE_ISUPPORTS
|
||||||
NS_DECL_NSIOBSERVER
|
|
||||||
|
|
||||||
// Enumeration for the valid play states (see mPlayState)
|
// Enumeration for the valid play states (see mPlayState)
|
||||||
enum PlayState {
|
enum PlayState {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче