Skip to content

Commit

Permalink
Fix default_query bug #227
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Feb 1, 2023
1 parent b48f1c1 commit 08c2174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/rtsp/rtsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ func tcpHandler(conn *rtsp.Conn) {

conn.Medias = mp4.ParseQuery(conn.URL.Query())
if conn.Medias == nil {
conn.Medias = defaultMedias
for _, media := range defaultMedias {
conn.Medias = append(conn.Medias, media.Clone())
}
}

if err := stream.AddConsumer(conn); err != nil {
Expand Down

0 comments on commit 08c2174

Please sign in to comment.