Fix a crash when trying to get HLS fragments from a disconnected strema.
[cubemap] / httpinput.cpp
index cbffe3ae26292e11dd550156fce840120dd3031e..715e31c4a162f8d9ce168969901ae3ca4253a8c9 100644 (file)
@@ -340,7 +340,8 @@ void HTTPInput::do_work()
                        pending_data.clear();
                        has_metacube_header = false;
                        for (int stream_index : stream_indices) {
-                               servers->set_header(stream_index, "", "");
+                               // Don't zero out the header; it might still be of use to HLS clients.
+                               servers->set_unavailable(stream_index);
                        }
 
                        {