aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpopcornmix <popcornmix@gmail.com>2018-02-27 15:26:57 +0000
committerGitHub <noreply@github.com>2018-02-27 15:26:57 +0000
commitdbdfe3dd57e3fbe7b0b91747b692868b9e710f18 (patch)
tree0a99cbcd40a2417cf08abc2fce05de54af1a9a26
parentc20a9da6f3683b27248dd4660bdbdb4f4c23a5a9 (diff)
parent7f233101c3639f9977e42726001a5f061d811ffa (diff)
Merge pull request #13592 from popcornmix/omx_skip
omxplayer: Avoid hang when skipping to next video
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayer.cpp3
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;