mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
webrtcbin: Fix pointer dereference before null check
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3133>
This commit is contained in:
parent
3b6234829a
commit
f8b248cb1a
1 changed files with 6 additions and 6 deletions
|
@ -5762,6 +5762,12 @@ _set_description_task (GstWebRTCBin * webrtc, struct set_description *sd)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!pad->trans) {
|
||||
GST_LOG_OBJECT (pad, "doesn't have a transceiver");
|
||||
tmp = tmp->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (pad->trans->mline >= gst_sdp_message_medias_len (sd->sdp->sdp)) {
|
||||
GST_DEBUG_OBJECT (pad, "not mentioned in this description. Skipping");
|
||||
tmp = tmp->next;
|
||||
|
@ -5778,12 +5784,6 @@ _set_description_task (GstWebRTCBin * webrtc, struct set_description *sd)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!pad->trans) {
|
||||
GST_LOG_OBJECT (pad, "doesn't have a transceiver");
|
||||
tmp = tmp->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
new_dir = pad->trans->direction;
|
||||
if (new_dir != GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY &&
|
||||
new_dir != GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV) {
|
||||
|
|
Loading…
Reference in a new issue