fix patch with stream creation

This commit is contained in:
Gennaro Gallo
2024-04-18 10:18:31 +02:00
parent d0a9c7a126
commit 621d2e017e
+1 -2
View File
@@ -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