From ec1f957627ed58ab10611916d57c162575f89e10 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 6 Jan 2023 20:30:43 +0100 Subject: [PATCH] webrtx muxer: fix timeout in case of H264 tracks --- internal/core/webrtc_conn.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/core/webrtc_conn.go b/internal/core/webrtc_conn.go index e1e95ba4..67b057f9 100644 --- a/internal/core/webrtc_conn.go +++ b/internal/core/webrtc_conn.go @@ -15,7 +15,6 @@ import ( "sync" "time" - "github.com/aler9/gortsplib/v2/pkg/codecs/h264" "github.com/aler9/gortsplib/v2/pkg/format" "github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtph264" "github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpvp8" @@ -430,7 +429,7 @@ outer: // do NOT close the WebSocket connection // in order to allow the other side of the connection - // o switch to the "connected" state before WebSocket is closed. + // to switch to the "connected" state before WebSocket is closed. ldesc, rdesc := describeActiveCandidates(pc) c.log(logger.Info, "peer connection established, local candidate: %v, remote candidate: %v", ldesc, rdesc) @@ -609,10 +608,6 @@ func (c *webRTCConn) allocateTracks(medias media.Medias) ([]*webRTCTrack, error) } if !firstNALUReceived { - if !h264.IDRPresent(tdata.AU) { - return - } - firstNALUReceived = true lastPTS = tdata.PTS } else {