[Approved] Clearing of #Play properties (1 Viewer)

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Patch attached, don't be afraid of the CODE stuff :))

    WindowPlugins/GUIVideoFiles/GUIVideoOverlay.cs, function PostRender, line 175 there is this:

    Code:
    if (GUIPropertyManager.GetProperty("#Play.Current.Thumb") != _thumbLogo)
    {
      _fileName = g_Player.CurrentFile;
      SetCurrentFile(_fileName);
    }

    well, problem is if the plugin sets this #Play.Current.Thumb property (like tvseries or moving pictures or trailers or ...), then when you exit the fullscreenvideo (with x or esc), then SetCurrentFile is called and SetCurrentFile clears most of the plugin set properties so next time you press x and view osd everything will be cleared..

    this if should be replaced by

    Code:
    if (GUIPropertyManager.GetProperty("#Play.Current.Thumb") != _thumbLogo)
    {
      _thumbLogo = GUIPropertyManager.GetProperty("#Play.Current.Thumb");
      if (g_Player.CurrentFile != _fileName)
      {
        _fileName = g_Player.CurrentFile;
        SetCurrentFile(_fileName);
      }
    }

    Best regards,
    SE
     

    Attachments

    • GUIVideoOverlay.patch
      30.6 KB

    Users who are viewing this thread

    Top Bottom