Latest Media Handler v2.4.X.000 (6 Viewers)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    What do you think ?
    I agree...
    I don't know if we can detect the current used plugin to parse the information to LMH, but i think it will be only a workaround, like i said before, changing the query for music part reduce the freeze.
    I have not found how to learn, and how not weird I friezes not, try to make a video and show ...
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I have make a video to show you the issue :) (in some previous post).
    The HDD didn't go in sleep.

    Do we need to refresh on playback stop ?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Ok,

    I have tested : (by adding Thread.Sleep(10000);) and it's better because MP is refreshed and background task is executed after 10 sec, so it means the GUI is ok when LMH is doing his work).
    It's a hack and i don't know how to do differently, it's really a joke to delay a background thread lol.

    Code:
    protected override void OnDoWork(DoWorkEventArgs e)
        {
          if (Utils.GetIsStopping() == false)
          {
            try
            {
              Thread.Sleep(10000);

    On stackoverflow.com, somes guys tell us that it can be working to add such code lol
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    My Video - https://goo.gl/photos/TPkmPeWAJGzW3ey68
    (by adding Thread.Sleep(10000);) and it's better because MP is refreshed and background task is executed after 10 sec, so it means the GUI is ok when LMH is doing his work).
    It is long, and not see the point ... Try Thread.Sleep(0); :whistle:
    It's a hack and i don't know how to do differently, it's really a joke to delay a background thread lol.
    I agree...
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    It's fast for you :)
    But not for me and it seems related (for me) for music section.
    Adding Thread.Sleep(0); change nothing lol
    But adding Thread.Sleep(10000); so 10s and now it's fast (like your video)
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,621
    10,632
    Königstein (Taunus)
    Home Country
    Germany Germany
    Yup, I really have no delay here with my PVHD - stopping to play an episode takes me immediately back to the TV Series listview ;)
    Same in MyVideos/MocPic/MyFilms ;)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Yep it depend maybe how the music db is big ?

    For sure with the older sql query it's better but not like LMH is disable lol.
    Adding the delay permit to have the GUI ok and refresh is done after 10 sec.

    Remember that when i remove the music db, it's better too, so it have to do with the sql query but no clue why (like it's started in a different thread).
    So i think it can be trigger by picture db for ex (not here for me but it can) so maybe it could be better to do the refresh only on the current plugin, if i'm on TVS, i don't care to have the music refreshed (while on TVS plugins).

    What i want to tell is, even if you can reproduce it, i pinpoint to something that can be trigger some days lol and for me it's the new query of sql music introduce with :
    SHA-1: dc2fed874b87319e5cbe1171b9e5d8856e8fdfd1
    * # LatestMediaHandler 2.3.0.47

    :p

    Ps : On my dev PC i didn't notice the same delay (because i didn't have the same amount of database size. So even if most of my music are on NAS, it shouldn't impact the GUI refresh like this and i can confirm it but introduce the delay above :)
     

    Users who are viewing this thread

    Top Bottom