Changed to send completed event message from main thread (#22)

I changed to send the completed event messages from main thread to avoid flutter engine's fml checker error.
This commit is contained in:
Hidenori Matsubayashi
2021-08-04 17:49:41 +09:00
committed by GitHub
parent ccdb4d9d20
commit 971dd0e2c1
4 changed files with 20 additions and 10 deletions
@@ -65,6 +65,7 @@ class GstVideoPlayer {
double playback_rate_ = 1.0;
bool mute_ = false;
bool auto_repeat_ = false;
bool is_completed_ = false;
std::shared_mutex mutex_buffer_;
std::unique_ptr<VideoPlayerStreamHandler> stream_handler_;
};