Commit 6f314f3
committed
[GStreamer][WebRTC] Request video key-frame when connecting incoming streams
https://bugs.webkit.org/show_bug.cgi?id=273238
Reviewed by Xabier Rodriguez-Calvar.
In some cases of remote peer sending H.264, the resulting depayloaded bitstream might not contain
SPS/PPS informations required for decoding. Without these the parser would discard frames until the
stream can be parsed, potentially leading to delay in setting up the video decoder. To workaround
this issue, issue a key-frame request as soon as a new src pad is exposed on webrtcbin, and also
when adding video pads to the mediastreamsrc element.
* Source/WebCore/platform/mediastream/gstreamer/GStreamerIncomingTrackProcessor.cpp:
(WebCore::GStreamerIncomingTrackProcessor::incomingTrackProcessor):
* Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:
(webkitMediaStreamSrcPadProbeCb):
Canonical link: https://commits.webkit.org/277980@main1 parent 95cae32 commit 6f314f3
2 files changed
Lines changed: 8 additions & 0 deletions
File tree
- Source/WebCore/platform/mediastream/gstreamer
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1060 | 1065 | | |
1061 | 1066 | | |
1062 | 1067 | | |
| |||
0 commit comments