RESOLVED FIXED 218172
[EME][GStreamer][Thunder] Make response parsing message more robust
https://bugs.webkit.org/show_bug.cgi?id=218172
Summary [EME][GStreamer][Thunder] Make response parsing message more robust
Xabier Rodríguez Calvar
Reported 2020-10-26 03:53:03 PDT
[EME][GStreamer][Thunder] Make response parsing message more robust
Attachments
Patch (6.32 KB, patch)
2020-10-26 04:01 PDT, Xabier Rodríguez Calvar
no flags
Patch (6.27 KB, patch)
2020-10-26 09:21 PDT, Xabier Rodríguez Calvar
no flags
Xabier Rodríguez Calvar
Comment 1 2020-10-26 04:01:02 PDT
Xabier Rodríguez Calvar
Comment 2 2020-10-26 04:01:57 PDT
This patch will properly build when bug 218171 lands.
Philippe Normand
Comment 3 2020-10-26 04:49:36 PDT
Comment on attachment 412301 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=412301&action=review > Source/WebCore/platform/graphics/gstreamer/eme/CDMThunder.cpp:342 > + explicit operator bool() const { return m_isValid; } > + bool operator!() const { return !m_isValid; } What is the difference between this and hasType()? Can hasType() be removed then? I'm not sure casting an Optional<> to a bool works as expected anyway.
Xabier Rodríguez Calvar
Comment 4 2020-10-26 06:18:03 PDT
(In reply to Philippe Normand from comment #3) > Comment on attachment 412301 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=412301&action=review > > > Source/WebCore/platform/graphics/gstreamer/eme/CDMThunder.cpp:342 > > + explicit operator bool() const { return m_isValid; } > > + bool operator!() const { return !m_isValid; } > > What is the difference between this and hasType()? Can hasType() be removed > then? I'm not sure casting an Optional<> to a bool works as expected anyway. There is no difference. It is the same thing but it works similarly in Optional so I wanted to keep it parallel.
Xabier Rodríguez Calvar
Comment 5 2020-10-26 09:21:17 PDT
EWS
Comment 6 2020-10-27 04:24:53 PDT
Committed r269030: <https://trac.webkit.org/changeset/269030> All reviewed patches have been landed. Closing bug and clearing flags on attachment 412320 [details].
Radar WebKit Bug Importer
Comment 7 2020-10-27 04:25:25 PDT
Note You need to log in before you can comment on or make changes to this bug.