Bug 1454889 - Remove createObjectURL()'s MediaStream overload, r=valentin
This commit is contained in:
@@ -2097,8 +2097,7 @@ void HTMLMediaElement::SelectResource()
|
||||
mMediaSource = mSrcMediaSource;
|
||||
DDLINKCHILD("mediasource", mMediaSource.get());
|
||||
UpdatePreloadAction();
|
||||
if (mPreloadAction == HTMLMediaElement::PRELOAD_NONE &&
|
||||
!IsMediaStreamURI(mLoadingSrc) && !mMediaSource) {
|
||||
if (mPreloadAction == HTMLMediaElement::PRELOAD_NONE && !mMediaSource) {
|
||||
// preload:none media, suspend the load here before we make any
|
||||
// network requests.
|
||||
SuspendLoad();
|
||||
@@ -2427,8 +2426,7 @@ void HTMLMediaElement::LoadFromSourceChildren()
|
||||
NS_ASSERTION(mNetworkState == NETWORK_LOADING,
|
||||
"Network state should be loading");
|
||||
|
||||
if (mPreloadAction == HTMLMediaElement::PRELOAD_NONE &&
|
||||
!IsMediaStreamURI(mLoadingSrc) && !mMediaSource) {
|
||||
if (mPreloadAction == HTMLMediaElement::PRELOAD_NONE && !mMediaSource) {
|
||||
// preload:none media, suspend the load here before we make any
|
||||
// network requests.
|
||||
SuspendLoad();
|
||||
@@ -2577,20 +2575,6 @@ HTMLMediaElement::LoadResource()
|
||||
return rv;
|
||||
}
|
||||
|
||||
if (IsMediaStreamURI(mLoadingSrc)) {
|
||||
RefPtr<DOMMediaStream> stream;
|
||||
nsresult rv = NS_GetStreamForMediaStreamURI(mLoadingSrc, getter_AddRefs(stream));
|
||||
if (NS_FAILED(rv)) {
|
||||
nsAutoString spec;
|
||||
GetCurrentSrc(spec);
|
||||
const char16_t* params[] = { spec.get() };
|
||||
ReportLoadError("MediaLoadInvalidURI", params, ArrayLength(params));
|
||||
return MediaResult(rv, "MediaLoadInvalidURI");
|
||||
}
|
||||
SetupSrcMediaStreamPlayback(stream);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (mMediaSource) {
|
||||
MediaDecoderInit decoderInit(
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user