Skip to content

Commit

Permalink
Merge pull request #3623 from MilhouseVH/le10_revert_streamdetails_up…
Browse files Browse the repository at this point in the history
…date

kodi: temp fix stream details are being lost once playback ends
  • Loading branch information
chewitt authored Jul 3, 2019
2 parents 18953c4 + 321d50c commit 9ff9ed3
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
commit 545ca6a2e8b3af40fba3e9786c7b7b677eb712d3
Author: afl1 <[email protected]>
Date: Tue May 14 23:37:59 2019 +0200

Revert "fixed: We should always update stream details from player (fixes #15584)"

This reverts commit be1ed70fb4b926cbdaf60367172ac7902690f00f.

diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index 1c4f5dfcd0..4b1550d1b9 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -3049,8 +3049,9 @@ void CApplication::OnPlayBackStarted(const CFileItem &file)
{
CLog::LogF(LOGDEBUG,"CApplication::OnPlayBackStarted");

- // Always update file item stream details
- m_appPlayer.SetUpdateStreamDetails();
+ // check if VideoPlayer should set file item stream details from its current streams
+ if (file.GetProperty("get_stream_details_from_player").asBoolean())
+ m_appPlayer.SetUpdateStreamDetails();

if (m_stackHelper.IsPlayingISOStack() || m_stackHelper.IsPlayingRegularStack())
m_itemCurrentFile.reset(new CFileItem(*m_stackHelper.GetRegisteredStack(file)));

0 comments on commit 9ff9ed3

Please sign in to comment.