Commit fe83369
committed
[GStreamer] Avoid crash for unexisting pad in webkitGstTraceProcessingTimeForElement
https://bugs.webkit.org/show_bug.cgi?id=258986
Reviewed by Philippe Normand.
In some platforms srcPad can become null, hence crashing. Now it's protected.
We also avoid the cause of the crash in the first place.
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::configureElement):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameMetadataGStreamer.cpp:
(webkitGstTraceProcessingTimeForElement):
Canonical link: https://commits.webkit.org/265902@main1 parent 19e0c1e commit fe83369
2 files changed
Lines changed: 11 additions & 4 deletions
File tree
- Source/WebCore/platform/graphics/gstreamer
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2246 | 2246 | | |
2247 | 2247 | | |
2248 | 2248 | | |
2249 | | - | |
| 2249 | + | |
2250 | 2250 | | |
2251 | 2251 | | |
2252 | 2252 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
119 | 127 | | |
120 | | - | |
121 | 128 | | |
122 | | - | |
| 129 | + | |
| 130 | + | |
123 | 131 | | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
129 | 137 | | |
130 | | - | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
| |||
0 commit comments