fix: video stuck on still frame after long pause

close #536
This commit is contained in:
edde746
2026-02-25 08:17:14 +01:00
parent cb39945a9d
commit b193a23524
4 changed files with 26 additions and 2 deletions
+5
View File
@@ -324,6 +324,11 @@ static void mpv_plugin_handle_method_call(FlMethodChannel* channel,
response = FL_METHOD_RESPONSE(fl_method_success_response_new(nullptr));
}
} else if (strcmp(method, "updateFrame") == 0) {
if (self->visible && self->texture) {
mpv_texture_mark_frame_available(self->texture);
}
response = FL_METHOD_RESPONSE(fl_method_success_response_new(nullptr));
} else if (strcmp(method, "isInitialized") == 0) {
gboolean initialized = self->player && self->initialized;
response = FL_METHOD_RESPONSE(