зеркало из https://github.com/mozilla/gecko-dev.git
Bug 844905 - Change MediaResource::GetContentType return type to nsCString. r=cpearce
This commit is contained in:
Родитель
7f34829d6d
Коммит
edf78018f2
|
@ -136,7 +136,7 @@ public:
|
|||
|
||||
bool IsTransportSeekable() MOZ_OVERRIDE { return true; }
|
||||
|
||||
virtual const nsACString& GetContentType() const MOZ_OVERRIDE
|
||||
virtual const nsCString& GetContentType() const MOZ_OVERRIDE
|
||||
{
|
||||
return mContentType;
|
||||
}
|
||||
|
|
|
@ -371,7 +371,7 @@ public:
|
|||
// Returns the content type of the resource. This is copied from the
|
||||
// nsIChannel when the MediaResource is created. Safe to call from
|
||||
// any thread.
|
||||
virtual const nsACString& GetContentType() const = 0;
|
||||
virtual const nsCString& GetContentType() const = 0;
|
||||
};
|
||||
|
||||
class BaseMediaResource : public MediaResource {
|
||||
|
@ -398,7 +398,7 @@ protected:
|
|||
MOZ_COUNT_DTOR(BaseMediaResource);
|
||||
}
|
||||
|
||||
virtual const nsACString& GetContentType() const MOZ_OVERRIDE
|
||||
virtual const nsCString& GetContentType() const MOZ_OVERRIDE
|
||||
{
|
||||
return mContentType;
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ WMFByteStream::Init()
|
|||
contentTypeUTF16.get());
|
||||
NS_ENSURE_TRUE(SUCCEEDED(hr), NS_ERROR_FAILURE);
|
||||
|
||||
LOG("WMFByteStream has Content-Type=%s", mResource->GetContentType());
|
||||
LOG("WMFByteStream has Content-Type=%s", mResource->GetContentType().get());
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче