[httpd] Fixup commit 5d7e3dc0 in case NULL isn't zero

This commit is contained in:
ejurgensen 2024-10-17 19:58:25 +02:00
parent 5d7e3dc090
commit 750f83b7e0
1 changed files with 3 additions and 1 deletions

View File

@ -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;