Skip to content

Commit ff50f84

Browse files
aerussokormoc
authored andcommitted
Fixes #11310, this forces ob_buffering off for readfile.
Signed-off-by: Rob Smith <kormoc@mythtv.org>
1 parent 8908516 commit ff50f84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/video/stream.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
if (stripos($Master_Host,':') !== false) {
6464
$Master_Host = '['.$Master_Host.']';
6565
}
66+
if (ob_get_level()) {
67+
ob_end_clean();
68+
}
6669
readfile("http://$Master_Host:$port/Content/GetVideo?Id=".$vid_id);
6770

6871
// Nothing else to do

0 commit comments

Comments
 (0)