diff options
author | popcornmix <popcornmix@gmail.com> | 2018-02-27 15:26:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 15:26:57 +0000 |
commit | dbdfe3dd57e3fbe7b0b91747b692868b9e710f18 (patch) | |
tree | 0a99cbcd40a2417cf08abc2fce05de54af1a9a26 | |
parent | c20a9da6f3683b27248dd4660bdbdb4f4c23a5a9 (diff) | |
parent | 7f233101c3639f9977e42726001a5f061d811ffa (diff) |
Merge pull request #13592 from popcornmix/omx_skip
omxplayer: Avoid hang when skipping to next video
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index 3988a7c490..953c021fd1 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -695,6 +695,9 @@ bool CVideoPlayer::OpenFile(const CFileItem& file, const CPlayerOptions &options { CLog::Log(LOGNOTICE, "VideoPlayer::OpenFile: %s", CURL::GetRedacted(file.GetPath()).c_str()); + if (m_omxplayer_mode && IsRunning()) + CloseFile(); + if (IsRunning()) { CDVDMsgOpenFile::FileParams params; |