mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 16:52:18 +00:00
server: fix converter final mime type
This commit is contained in:
@@ -424,10 +424,10 @@ export abstract class MediaManagerBase implements MediaManager {
|
||||
|
||||
if (converter.toMimeType === ScryptedMimeTypes.MediaObject) {
|
||||
const mo = await converter.convert(value, valueMime.essence, toMimeType, { sourceId }) as MediaObject;
|
||||
const found = await this.convertMediaObjectToBuffer(mo, toMimeType);
|
||||
const found = await this.convertMediaObject(mo, toMimeType);
|
||||
return {
|
||||
data: found,
|
||||
mimeType: mo.mimeType,
|
||||
mimeType: toMimeType,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user