diff --git a/src/ffprobe-wasm-wrapper.cpp b/src/ffprobe-wasm-wrapper.cpp index 5cc1c4b..c27fea1 100644 --- a/src/ffprobe-wasm-wrapper.cpp +++ b/src/ffprobe-wasm-wrapper.cpp @@ -67,6 +67,8 @@ typedef struct FramesResponse { } FramesResponse; FileInfoResponse get_file_info(std::string filename) { + av_log_set_level(AV_LOG_QUIET); // No logging output for libav. + FILE *file = fopen(filename.c_str(), "rb"); if (!file) { printf("cannot open file\n"); diff --git a/www/src/components/Overview.vue b/www/src/components/Overview.vue index 92ae256..2f47d35 100644 --- a/www/src/components/Overview.vue +++ b/www/src/components/Overview.vue @@ -15,9 +15,9 @@ export default { name: 'Overview', props: ['info'], - data() { - return { - items: [ + computed: { + items() { + return [ { name: this.info.name, duration: this.info.duration, @@ -26,15 +26,17 @@ export default { nb_streams: this.info.nb_streams, flags: this.info.flags, }, - ], - versions: [ + ] + }, + versions() { + return [ { libavutil: this.info.versions.libavutil, libavcodec: this.info.versions.libavcodec, libavformat: this.info.versions.libavformat, - } + }, ] - } - } + }, + }, } \ No newline at end of file