From 78e60870d04782eb04a2278dfaffa429ce157230 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Mon, 25 May 2026 12:23:25 +0100 Subject: mime.video: drop hardcoded 60s offset, use default throughout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- plugins/mime.video.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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']; -- cgit v1.3