mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 21:14:43 +01:00
Update Ogg.php
This commit is contained in:
parent
d0d9afb80a
commit
ab79e2e5da
@ -543,6 +543,7 @@ final class Ogg
|
||||
public static function validateOgg(LocalFile|RemoteUrl|ReadableStream $f): void
|
||||
{
|
||||
$ok = false;
|
||||
$e = null;
|
||||
try {
|
||||
try {
|
||||
$cancel = new DeferredCancellation;
|
||||
@ -551,10 +552,10 @@ final class Ogg
|
||||
} finally {
|
||||
$cancel->cancel();
|
||||
}
|
||||
} catch (\Throwable) {
|
||||
} catch (\Throwable $e) {
|
||||
}
|
||||
if (!$ok) {
|
||||
throw new AssertionError("The passed file was not generated by MadelineProto or @libtgvoipbot, please pre-convert it using @libtgvoipbot or install FFI and ffmpeg to perform realtime conversion!");
|
||||
throw new AssertionError("The passed file was not generated by MadelineProto or @libtgvoipbot, please pre-convert it using @libtgvoipbot or install FFI and ffmpeg to perform realtime conversion!", 0, $e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user