From 621d2e017e135e98f3f41127aa1232a574d12d43 Mon Sep 17 00:00:00 2001 From: Gennaro Gallo Date: Thu, 18 Apr 2024 10:18:31 +0200 Subject: [PATCH] fix patch with stream creation --- internal/mp4/mp4.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/mp4/mp4.go b/internal/mp4/mp4.go index 654d9ae7..78708a35 100644 --- a/internal/mp4/mp4.go +++ b/internal/mp4/mp4.go @@ -91,8 +91,7 @@ func handlerMP4(w http.ResponseWriter, r *http.Request) { return } - src := query.Get("src") - stream := streams.Get(src) + stream := streams.GetOrPatch(query) if stream == nil { http.Error(w, api.StreamNotFound, http.StatusNotFound) return