-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MMS] Add logging for streaming
state changes and streamingAllowed
timer
#18460
Conversation
EWS run on current version of this PR (hash 4137c2b) |
@@ -44,7 +44,7 @@ class ManagedMediaSource final : public MediaSource { | |||
|
|||
static bool isTypeSupported(ScriptExecutionContext&, const String& type); | |||
|
|||
bool streaming() const { return m_streaming; } | |||
bool streaming() const override { return m_streaming; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class is already final
@@ -503,7 +503,7 @@ ExceptionOr<void> SourceBuffer::appendBufferInternal(const unsigned char* data, | |||
if (isRemoved() || m_updating) | |||
return Exception { InvalidStateError }; | |||
|
|||
DEBUG_LOG(LOGIDENTIFIER, "size = ", size, ", buffered = ", m_private->buffered()); | |||
ALWAYS_LOG(LOGIDENTIFIER, "size = ", size, ", buffered = ", m_private->buffered(), " streaming = ", m_source->streaming()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to generate a lot of logging, are you sure you want ALWAYS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The completion of appendBuffer is already always.
so it doesnβt add that much logging: it just now have a match for begin and end.
β¦` timer https://bugs.webkit.org/show_bug.cgi?id=262435 rdar://116158344 Reviewed by Eric Carlson. Logging change only. * Source/WebCore/Modules/mediasource/ManagedMediaSource.cpp: (WebCore::ManagedMediaSource::setStreaming): (WebCore::ManagedMediaSource::streamingTimerFired): * Source/WebCore/Modules/mediasource/ManagedMediaSource.h: * Source/WebCore/Modules/mediasource/MediaSource.h: (WebCore::MediaSource::streaming const): * Source/WebCore/Modules/mediasource/SourceBuffer.cpp: (WebCore::SourceBuffer::appendBufferInternal): Canonical link: https://commits.webkit.org/268701@main
4137c2b
to
9b0f88f
Compare
Committed 268701@main (9b0f88f): https://commits.webkit.org/268701@main Reviewed commits have been landed. Closing PR #18460 and removing active labels. |
9b0f88f
4137c2b