fflush() after writing subtitles

This commit is contained in:
cfsmp3
2016-03-07 10:15:26 +01:00
parent a9a861e8f2
commit 4d4af9ff7f

View File

@@ -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;
}