mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-20 21:20:28 +00:00
fflush() after writing subtitles
This commit is contained in:
@@ -1491,6 +1491,8 @@ int encode_sub(struct encoder_ctx *context, struct cc_subtitle *sub)
|
||||
}
|
||||
if (!sub->nb_data)
|
||||
freep(&sub->data);
|
||||
if (wrote_something)
|
||||
fflush(context->out->fh); // Don't buffer
|
||||
return wrote_something;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user