mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 844905 - Change MediaResource::GetContentType return type to nsCString. r=cpearce
This commit is contained in:
parent
d86c245b78
commit
b59eb40039
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user