File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -232,11 +232,11 @@ export default {
232
232
this .cmd = ffmpeg .build (opt);
233
233
},
234
234
updateOutput () {
235
- if (this .form .output ) {
236
- const { format , output } = this .form ;
237
- const ext = path .extname (output);
235
+ if (this .form .io . output ) {
236
+ const { format , io } = this .form ;
237
+ const ext = path .extname (io . output );
238
238
if (ext) {
239
- this .form .output = ` ${ output .replace (ext, ` .${ format .container } ` )} ` ;
239
+ this .form .io . output = ` ${ io . output .replace (ext, ` .${ format .container } ` )} ` ;
240
240
}
241
241
}
242
242
},
@@ -268,15 +268,15 @@ export default {
268
268
this .preset .name = this .preset .name || this .preset .id ;
269
269
},
270
270
encode () {
271
- const { input , output } = this .form ;
271
+ const { input , output } = this .form . io ;
272
272
const json = util .transformToJSON (this .form );
273
273
storage .add (' queue' , {
274
274
id: Date .now (),
275
275
type: ' encode' ,
276
276
payload: json,
277
277
status: ' queued' ,
278
- input: input . name ,
279
- output: output . name ,
278
+ input,
279
+ output,
280
280
_showDetails: false ,
281
281
});
282
282
this .$emit (' onEncode' );
You can’t perform that action at this time.
0 commit comments