chore (maintenance): maintainance

This commit is contained in:
MickaelK
2026-06-08 22:25:46 +10:00
parent b0a214a9d2
commit 78f23126f6
3 changed files with 2 additions and 6 deletions
@@ -13,7 +13,7 @@ export default async function(render, { getDownloadUrl, getFilename, $menubar, a
<div class="component_docx"></div>
`);
render($page);
$menubar.add(buttonDownload(getFilename(), getDownloadUrl()));
$menubar.add(buttonDownload(getDownloadUrl()));
const removeLoader = createLoader($page);
effect(ajax({ url: getDownloadUrl(), responseType: "arraybuffer" }).pipe(
@@ -46,7 +46,7 @@ export default async function(render, { mime, getDownloadUrl, getFilename, $menu
// feature2: toolbar init
if (canWrite) {
$menubar.add(buttonDownload(filename, getDownloadUrl()));
$menubar.add(buttonDownload(getDownloadUrl()));
if (isWriter(mime)) {
$menubar.add($toolbar.bullet);
$menubar.add($toolbar.alignment);
@@ -317,10 +317,6 @@ static int open_output(ctx *c, uintptr_t writer, char *errbuf, int errlen) {
return 0;
}
// build_filter wires buffersrc -> graph_spec -> buffersink. For video, src is
// the first decoded frame: the buffersrc is configured from it so it inherits
// the frame's hw_frames_ctx when decoding on the GPU (only known once decoding
// starts, hence the lazy build). Audio has no src and is set up from the decoder.
static int build_filter(ctx *c, stream *s, AVFrame *src, char *errbuf, int errlen) {
s->graph = avfilter_graph_alloc();
if (!s->graph) {