Skip to content

Commit

Permalink
Merge pull request #284 from MediaPortal/MP1-5203-Resume_of_inserted_…
Browse files Browse the repository at this point in the history
…dvd_bluray_disc_doesn't_work

MP1-5203: Resume of inserted dvd/bluray disc doesn't work (from autoplay)
  • Loading branch information
andrewjswan authored Mar 18, 2024
2 parents f8ac9f3 + ff121f2 commit 9085a12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ public bool OnPlayBD(String drive, int parentId)
byte[] resumeData = null;

if ((idMovieImg >= 0) && (idFileImg >= 0))
{
{
g_Player.SetResumeBDTitleState = VideoDatabase.GetTitleBDId(idFileImg, out resumeData);
timeMovieStopped = VideoDatabase.GetMovieStopTimeAndResumeData(idFileImg, out resumeData, g_Player.SetResumeBDTitleState);

if (timeMovieStopped > 0)
Expand Down Expand Up @@ -184,8 +185,12 @@ public bool OnPlayBD(String drive, int parentId)
{
g_Player.Stop();
}

if (timeMovieStopped > 0)
g_Player.Play(drive + @"\BDMV\index.bdmv", g_Player.MediaType.Video, g_Player.SetResumeBDTitleState, true);
else
g_Player.PlayBD(drive + @"\BDMV\index.bdmv");

g_Player.PlayBD(drive + @"\BDMV\index.bdmv");
g_Player.ShowFullScreenWindow();

///*
Expand Down
2 changes: 1 addition & 1 deletion mediaportal/WindowPlugins/GUIVideos/SelectDVDHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public bool OnPlayDVD(String drive, int parentId)
byte[] resumeData = null;
if ((idMovie >= 0) && (idFile >= 0))
{
timeMovieStopped = VideoDatabase.GetMovieStopTimeAndResumeData(idFile, out resumeData, g_Player.SetResumeBDTitleState);
timeMovieStopped = VideoDatabase.GetMovieStopTimeAndResumeData(idFile, out resumeData);
//Log.Info("GUIVideoFiles: OnPlayBackStopped for DVD - idFile={0} timeMovieStopped={1} resumeData={2}", idFile, timeMovieStopped, resumeData);
if (timeMovieStopped > 0)
{
Expand Down

0 comments on commit 9085a12

Please sign in to comment.