Bug 247122

Summary: [MSE] Bring back some useful SourceBuffer logs
Product: WebKit Reporter: Enrique Ocaña <eocanha>
Component: MediaAssignee: Enrique Ocaña <eocanha>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Attachments
Enrique Ocaña
Comment 1 2022-10-27 06:17:12 PDT
EWS
Comment 2 2022-11-02 03:49:55 PDT
Committed 256224@main (e5e73c6cc13d): <https://commits.webkit.org/256224@main> Reviewed commits have been landed. Closing PR #5854 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2022-11-02 03:50:19 PDT
Enrique Ocaña
Comment 4 2022-11-02 10:16:22 PDT
Jer Noble gave the following feedback in Slack: This logging change looks pretty bad; there’s no need to use printf(); DEBUG_LOG() works with StringConcatenation. There’s no need to include the method name, because that’s included with LOGIDENTIFIER. And *this shouldn’t be needed here as that’s also included in LOGIDENTIFIER*. Can you please undo these changes you made? They can be replaced with something more like this: DEBUG_LOG(LOGIDENTIFIER, "size = ", size, ", buffered = ", m_private->buffered()->ranges()); If you get an error concatenating a PlatformTimeRanges, the right way to deal with that is to add a macro to PlatformTimeRanges.h like the one from MediaTime.h: template<typename> struct LogArgument; template<> struct LogArgument<MediaTime> { static String toString(const MediaTime& time) { return time.toJSONString(); } }; template<> struct LogArgument<MediaTimeRange> { static String toString(const MediaTimeRange& range) { return range.toJSONString(); } };
Enrique Ocaña
Comment 5 2022-11-02 12:37:44 PDT
EWS
Comment 6 2022-11-04 03:20:13 PDT
Committed 256317@main (445669890d9b): <https://commits.webkit.org/256317@main> Reviewed commits have been landed. Closing PR #6044 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.