Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,12 @@ void MediaPlayerPrivateGStreamer::setRate(float rate)
m_playbackRatePausedState = PlaybackRatePausedState::RatePaused;
updateStates();
}
if (m_currentState == GST_STATE_PLAYING && m_playbackRatePausedState != PlaybackRatePausedState::RatePaused) {
GST_INFO_OBJECT(pipeline(), "Pausing stream because of zero playback rate in setRate");
m_playbackRatePausedState = PlaybackRatePausedState::RatePaused;
changePipelineState(GST_STATE_PAUSED);
updatePlaybackRate();
}
return;
} else if (m_playbackRatePausedState == PlaybackRatePausedState::RatePaused) {
m_playbackRatePausedState = PlaybackRatePausedState::ShouldMoveToPlaying;
Expand All @@ -652,6 +658,11 @@ void MediaPlayerPrivateGStreamer::setRate(float rate)
|| (pending == GST_STATE_PAUSED))
return;

if (m_currentState == GST_STATE_PAUSED && m_playbackRate && m_playbackRatePausedState != PlaybackRatePausedState::Playing) {
m_playbackRatePausedState = PlaybackRatePausedState::Playing;
GST_INFO_OBJECT(pipeline(), "[Buffering] Restarting playback (because of resuming from zero playback rate) in setRate");
changePipelineState(GST_STATE_PLAYING);
}
updatePlaybackRate();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,6 @@ void WebFrameLoaderClient::dispatchDidReceiveResponse(DocumentLoader*, ResourceL
return;

webPage->injectedBundleResourceLoadClient().didReceiveResponseForResource(*webPage, m_frame, identifier, response);
if (response.httpStatusCode() >= 400) {
String message = "Failed to load resource: the server responded with a status of " + String::number(response.httpStatusCode()) + " (" + response.httpStatusText() + ')';
LOG(Loading,"dispatchDidReceiveResponse->message:%s", message.utf8().data());
}
}

void WebFrameLoaderClient::dispatchDidReceiveContentLength(DocumentLoader*, ResourceLoaderIdentifier identifier, int dataLength)
Expand Down Expand Up @@ -324,7 +320,6 @@ void WebFrameLoaderClient::dispatchDidFailLoading(DocumentLoader*, ResourceLoade

webPage->injectedBundleResourceLoadClient().didFailLoadForResource(*webPage, m_frame, identifier, error);
webPage->removeResourceRequest(identifier);
LOG(Loading,"dispatchedDidFailLoading: isTimeout=%d, isCancellation=%d, isAccessControl=%d, errorCode=%d description:%s", error.isTimeout(), error.isCancellation(), error.isAccessControl(), error.errorCode(), error.localizedDescription().utf8().data());
}

bool WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache(DocumentLoader*, const ResourceRequest&, const ResourceResponse&, int /*length*/)
Expand Down Expand Up @@ -638,8 +633,6 @@ void WebFrameLoaderClient::dispatchDidFailLoad(const ResourceError& error)
// If we have a load listener, notify it.
if (WebFrame::LoadListener* loadListener = m_frame->loadListener())
loadListener->didFailLoad(m_frame.ptr(), error.isCancellation());

LOG(Loading,"dispatchDidFailLoad: isTimeout= %d, isCancellation= %d, isAccessControl= %d, errorCode= %d description: %s", error.isTimeout(), error.isCancellation(), error.isAccessControl(), error.errorCode(), error.localizedDescription().utf8().data());
}

void WebFrameLoaderClient::dispatchDidFinishDocumentLoad()
Expand Down