From 750f83b7e04039f07b3b03b5ee7ec563c3866023 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 17 Oct 2024 19:58:25 +0200 Subject: [PATCH] [httpd] Fixup commit 5d7e3dc0 in case NULL isn't zero --- src/httpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/httpd.c b/src/httpd.c index 0bcc8592..8bdf5bb3 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -697,7 +697,9 @@ stream_new(struct media_file_info *mfi, struct httpd_request *hreq, event_callba event_active(st->ev, 0, 0); - st->no_register_playback = httpd_query_value_find(hreq->query, "no_register_playback"); + if (httpd_query_value_find(hreq->query, "no_register_playback")) + st->no_register_playback = true; + st->id = mfi->id; st->hreq = hreq; return st;