mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1114851 - Null check in NS_GetStreamForMediaStreamURI, r=smaug
This commit is contained in:
parent
d61efa95c5
commit
d8a7c2cb35
@ -642,8 +642,13 @@ NS_GetStreamForMediaStreamURI(nsIURI* aURI, mozilla::DOMMediaStream** aStream)
|
||||
{
|
||||
NS_ASSERTION(IsMediaStreamURI(aURI), "Only call this with mediastream URIs");
|
||||
|
||||
nsISupports* dataObject = GetDataObject(aURI);
|
||||
if (!dataObject) {
|
||||
return NS_ERROR_DOM_BAD_URI;
|
||||
}
|
||||
|
||||
*aStream = nullptr;
|
||||
return CallQueryInterface(GetDataObject(aURI), aStream);
|
||||
return CallQueryInterface(dataObject, aStream);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user