mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
chore (maintenance): maintainance
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user