RESOLVED FIXED 183004
[GStreamer] Rewrite purgeInvalid*Tracks methods
https://bugs.webkit.org/show_bug.cgi?id=183004
Summary [GStreamer] Rewrite purgeInvalid*Tracks methods
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.