Bug 183004

Summary: [GStreamer] Rewrite purgeInvalid*Tracks methods
Product: WebKit Reporter: Philippe Normand <pnormand>
Component: PlatformAssignee: Philippe Normand <pnormand>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch cgarcia: review+

Philippe Normand
Reported 2018-02-21 08:37:21 PST
Removing items from a hashmap while iterating is no good.
Attachments
Patch (3.34 KB, patch)
2018-02-21 08:40 PST, Philippe Normand
cgarcia: review+
Philippe Normand
Comment 1 2018-02-21 08:40:02 PST
Carlos Garcia Campos
Comment 2 2018-02-21 08:46:10 PST
Comment on attachment 334382 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=334382&action=review > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1458 > + m_audioTracks.removeIf([&](auto& keyAndValue) { I prefer to explicitly capture validTrackIds& only
Philippe Normand
Comment 3 2018-02-21 09:01:16 PST
Radar WebKit Bug Importer
Comment 4 2018-02-21 09:02:38 PST
Note You need to log in before you can comment on or make changes to this bug.