if (inputStream == null) {
// No inputStream indicates that transcoding / remuxing probably crashed.
LOGGER.error("There is no inputstream to return for " + name);
} else {
startStopListenerDelegate.start(dlna);
output(output, "Content-Type: " + getRendererMimeType(dlna.mimeType(), mediaRenderer));
if (dlna.getMedia() != null && !configuration.isDisableSubtitles()) {
// Some renderers (like Samsung devices) allow a custom header for a subtitle URL
String subtitleHttpHeader = mediaRenderer.getSubtitleHttpHeader();
if (subtitleHttpHeader != null && !"".equals(subtitleHttpHeader)) {