Commit f5afad2
[GStreamer][Broadcom] fix incorrect casting of GstGhostPad to GstElement
https://bugs.webkit.org/show_bug.cgi?id=305788
Reviewed by Xabier Rodriguez-Calvar.
The problem is observed when brcm audio/video filters are plugged into
the "inner-parser" in WebKitThunderParser.
GStreamerQuirkBroadcomBase::setupBufferingPercentageCorrection() tries
and fails to cast GstGhostPad to GstElement. The
gst_pad_get_parent_element() method fits better for the use case.
Also, this change disables the correction of buffering percentage for
MSE and MediaStream playbacks, since it only makes sense for regular
playback.
Original author: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com>
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::handleMessage): Only do buffering percentage correction on regular playback (not MediaStream, not MSE).
* Source/WebCore/platform/gstreamer/GStreamerQuirkBroadcomBase.cpp:
(WebCore::GStreamerQuirkBroadcomBase::setupBufferingPercentageCorrection const): Use gst_pad_get_parent_element() instead of gst_pad_get_parent(), since it's more robust against the case when the parent isn't a GstElement.
Canonical link: https://commits.webkit.org/305877@main1 parent 6dc7dda commit f5afad2
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- Source/WebCore/platform
- graphics/gstreamer
- gstreamer
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2166 | 2166 | | |
2167 | 2167 | | |
2168 | 2168 | | |
2169 | | - | |
| 2169 | + | |
2170 | 2170 | | |
2171 | 2171 | | |
2172 | 2172 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments