diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-25 12:23:25 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-25 12:23:25 +0100 |
| commit | 78e60870d04782eb04a2278dfaffa429ce157230 (patch) | |
| tree | 0353117f38d16f6330b638dbec386bf3067c6265 | |
| parent | 76a8a21a09b5fb59e9840521b713d9947c49db19 (diff) | |
| download | liberty-78e60870d04782eb04a2278dfaffa429ce157230.tar.gz liberty-78e60870d04782eb04a2278dfaffa429ce157230.tar.bz2 liberty-78e60870d04782eb04a2278dfaffa429ce157230.zip | |
mime.video: drop hardcoded 60s offset, use default throughout
Store and update paths were explicitly passing 60s offset to
mime_video_create_thumbnail — clips shorter than that would cause
the ffmpeg fallback to seek past end-of-file and produce nothing.
Now all call sites use the 5s default set in the previous commit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rwxr-xr-x | plugins/mime.video.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mime.video.php b/plugins/mime.video.php index 1b108c3..6d97ecc 100755 --- a/plugins/mime.video.php +++ b/plugins/mime.video.php @@ -87,7 +87,7 @@ function mime_video_store( &$pStoreRow ) { // if storing works, we process the video if( $ret = mime_default_store( $pStoreRow )) { $source = STORAGE_PKG_PATH.$pStoreRow['upload']['dest_branch'].$pStoreRow['upload']['name']; - mime_video_create_thumbnail( $source, 60 ); + mime_video_create_thumbnail( $source ); // if( !mime_video_converter( $pStoreRow )) { // $pStoreRow['errors'] = $pStoreRow['log']; @@ -117,7 +117,7 @@ function mime_video_update( &$pStoreRow, $pParams = null ) { // if storing works, we process the video if( !empty( $pStoreRow['upload'] ) && $ret = mime_default_update( $pStoreRow )) { $source = STORAGE_PKG_PATH.$pStoreRow['upload']['dest_branch'].$pStoreRow['upload']['name']; - mime_video_create_thumbnail( $source, 60 ); + mime_video_create_thumbnail( $source ); // if( !mime_video_converter( $pStoreRow )) { // // if it all goes tits up, we'll know why // $pStoreRow['errors'] = $pStoreRow['log']; |
