We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e969c commit 303941eCopy full SHA for 303941e
src/Transcoder.php
@@ -156,7 +156,10 @@ function (AssetThumbEvent $event) {
156
/** @var Asset $asset */
157
$asset = $event->asset;
158
if (AssetsHelper::getFileKindByExtension($asset->filename) === Asset::KIND_VIDEO) {
159
- $event->path = Transcoder::$plugin->transcode->handleGetAssetThumbPath($event);
+ $path = Transcoder::$plugin->transcode->handleGetAssetThumbPath($event);
160
+ if (!empty($path)) {
161
+ $event->path = $path;
162
+ }
163
}
164
165
);
0 commit comments