Skip to content

Commit 7605de0

Browse files
committed
fix(previews): ffprobe hangs
Signed-off-by: Andrey Dyakov <adduxa@gmail.com>
1 parent 1a43e65 commit 7605de0

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
- Andreas Pflug <dev@admin4.org>
3333
- Andrew Brown <andrew@casabrown.com>
3434
- Andrey Borysenko <andrey.borysenko@nextcloud.com>
35+
- Andrey Dyakov <adduxa@gmail.com>
3536
- André Gaul <gaul@web-yard.de>
3637
- Andy Xheli <axheli@axtsolutions.com>
3738
- Anna Larch <anna@nextcloud.com>

lib/private/Preview/Movie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ private function useHdr(string $absPath): bool {
289289
if ($test_hdr_proc === false) {
290290
return false;
291291
}
292-
$test_hdr_stdout = trim(stream_get_contents($test_hdr_pipes[1]));
293292
$test_hdr_stderr = trim(stream_get_contents($test_hdr_pipes[2]));
293+
$test_hdr_stdout = trim(stream_get_contents($test_hdr_pipes[1]));
294294
proc_close($test_hdr_proc);
295295
// search build options for libzimg (provides zscale filter)
296296
$ffmpeg_libzimg_installed = strpos($test_hdr_stderr, '--enable-libzimg');

0 commit comments

Comments
 (0)