fixed: FileCache-full logic was wrong + implement GetMaxWriteSize() function
fixed: Don't keep reading source when cache is full (fixes #15500)
changed: Use m_StateInput else dvdplayer osd info is 8 seconds delayed
fixed: Calling WaitForData with a large minimum could cause it to block the max. timeout
fixed: Typo in variable name
changed: Don't reset average rate on cache switch as it doesn't work properly with heavy seeking